aboutsummaryrefslogtreecommitdiffstats
path: root/lib/handler_stack.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-02 11:47:42 +0000
committerStephen Blott2015-01-02 12:08:35 +0000
commit298ee34b1c90b0203a74a2d158858428475bfd95 (patch)
tree74a634c247bb0108701adafe7acd7397cf15166f /lib/handler_stack.coffee
parent6d471844497ff35b83296d7da34830288696f029 (diff)
downloadvimium-298ee34b1c90b0203a74a2d158858428475bfd95.tar.bz2
Modes; fix insert 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