You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2015/03/05 13:36:22 UTC

tapestry-5 git commit: don't return falsy values from event listeners, this prevents other listeners from running

Repository: tapestry-5
Updated Branches:
  refs/heads/master 4d1dcc26f -> 1c6b51c46


don't return falsy values from event listeners, this prevents other listeners from running


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

Branch: refs/heads/master
Commit: 1c6b51c462908681cd037ed316119262486257c7
Parents: 4d1dcc2
Author: Jochen Kemnade <jo...@eddyson.de>
Authored: Thu Mar 5 13:35:22 2015 +0100
Committer: Jochen Kemnade <jo...@eddyson.de>
Committed: Thu Mar 5 13:35:22 2015 +0100

----------------------------------------------------------------------
 .../coffeescript/META-INF/modules/t5/core/zone-refresh.coffee   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1c6b51c4/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/zone-refresh.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/zone-refresh.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/zone-refresh.coffee
index 4fb960f..bb1610b 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/zone-refresh.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/zone-refresh.coffee
@@ -34,11 +34,14 @@ define ["./events", "./dom", "./console"],
 
       # Whenever the zone updates, we can clear the executing flag.
 
-      zone.on events.zone.didUpdate, -> executing = false
+      zone.on events.zone.didUpdate, ->
+        executing = false
+        return
 
       cleanUp = ->
         window.clearInterval intervalId
         zone = null
+        return
 
       handler = ->
         # Don't clog things up if the response rate is too slow