You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/07/22 01:54:03 UTC

git commit: Move the def of reflowEventsEnabled outside of the Prototype-only block

Updated Branches:
  refs/heads/master e2db6e238 -> 3821f3873


Move the def of reflowEventsEnabled outside of the Prototype-only block


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

Branch: refs/heads/master
Commit: 3821f3873c5993cb3dd7e350511d373aa467be4a
Parents: e2db6e2
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Sun Jul 21 16:53:51 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Sun Jul 21 16:53:51 2013 -0700

----------------------------------------------------------------------
 .../org/apache/tapestry5/t5-core-dom.coffee                   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3821f387/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
index 186ec90..f2a90af 100644
--- a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
+++ b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
@@ -37,13 +37,16 @@ define ["underscore", "./utils", "./events", "jquery"],
 (_, utils, events, $) ->
 #endif
 
+  # By default, many DOM-manipulating functions here will trigger a periodic reflow event (this is to allow
+  # adjustment of elements with absolute positioning, such as a Bootstrap Popover). However, this can be
+  # temporarily disabled.
+  reflowEventsEnabled = true
+
 #if prototype
   # Save a local reference to Prototype.$ ... see notes about some challenges using Prototype, jQuery,
   # and RequireJS together, here: https://github.com/jrburke/requirejs/issues/534
   $ = window.$
 
-  reflowEventsEnabled = true
-
   # Fires a native event; something that Prototype does not normally do.
   # Returns true if the event completed normally, false if it was canceled.
   fireNativeEvent = (element, eventName) ->