tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject [1/2] git commit: HTML-escape messages added to floating console
Date Thu, 09 Aug 2012 00:39:33 GMT
Updated Branches:
  refs/heads/5.4-js-rewrite f9d53e733 -> e366af0ff


HTML-escape messages added to floating console


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e366af0f
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e366af0f
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e366af0f

Branch: refs/heads/5.4-js-rewrite
Commit: e366af0ffa1b3b66162cc66d277902c7d17be889
Parents: 9b8597b
Author: Howard M. Lewis Ship <hlship@apache.org>
Authored: Wed Aug 8 17:39:19 2012 -0700
Committer: Howard M. Lewis Ship <hlship@apache.org>
Committed: Wed Aug 8 17:39:19 2012 -0700

----------------------------------------------------------------------
 .../META-INF/modules/core/console.coffee           |   37 ++++++++-------
 1 files changed, 19 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e366af0f/tapestry-core/src/main/coffeescript/META-INF/modules/core/console.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/core/console.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/core/console.coffee
index 2f83331..273b73d 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/core/console.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/core/console.coffee
@@ -19,7 +19,8 @@ define ->
   # module exports are mutable; someone else could
   # require this module to change the default DURATION
   exports =
-    DURATION : 10 # seconds
+    DURATION: 10
+  # seconds
 
   try
     nativeConsole = console
@@ -30,23 +31,23 @@ define ->
     # Disable the floating console temporarily, since we have to resolve the tangle of dependencies
     # related to loading vs. the core stack, etc.
 
-#    unless floatingConsole
-#      floatingConsole = new Element "div", class: "t-console"
-#      $(document.body).insert top: floatingConsole
-#
-#    div = new Element "div", class: "t-console-entry #{className}"
-#    div.update(message).hide()
-#    floatingConsole.insert top:div
-#
-#    new Effect.Appear div, duration: .25
-#
-#    fade = new Effect.Fade div,
-#      delay: exports.DURATION
-#      afterFinish: -> div.remove()  # was T5.dom.remove(div)
-#
-#    div.observe "click", ->
-#      fade.cancel()
-#      div.remove() # was T5.dom.remove(div)
+    #    unless floatingConsole
+    #      floatingConsole = new Element "div", class: "t-console"
+    #      $(document.body).insert top: floatingConsole
+    #
+    #    div = new Element "div", class: "t-console-entry #{className}"
+    #    div.update(_.escape(message)).hide()
+    #    floatingConsole.insert top:div
+    #
+    #    new Effect.Appear div, duration: .25
+    #
+    #    fade = new Effect.Fade div,
+    #      delay: exports.DURATION
+    #      afterFinish: -> div.remove()  # was T5.dom.remove(div)
+    #
+    #    div.observe "click", ->
+    #      fade.cancel()
+    #      div.remove() # was T5.dom.remove(div)
 
   level = (className, consolefn) ->
     (message) ->


Mime
View raw message