aboutsummaryrefslogtreecommitdiffstats
path: root/lib/handler_stack.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handler_stack.coffee')
-rw-r--r--lib/handler_stack.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee
index 8de6ec12..f56683f1 100644
--- a/lib/handler_stack.coffee
+++ b/lib/handler_stack.coffee
@@ -46,5 +46,10 @@ class HandlerStack
isChromeEvent: (event) ->
event?.preventDefault? and event?.stopImmediatePropagation?
+ # Convenience wrapper for handlers which always continue propagation.
+ alwaysPropagate: (handler) ->
+ handler()
+ true
+
root.HandlerStack = HandlerStack
root.handlerStack = new HandlerStack