diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/handler_stack.coffee | 5 |
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 |
