aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-14 12:43:41 +0000
committerStephen Blott2015-01-14 13:31:29 +0000
commit3e0378d0bc5d85ffec0ef49f7c421edbe9c073ec (patch)
tree9198362c577df8f90f76791ef4471cd6ba51596a /content_scripts/mode.coffee
parent9b0a48955c61c262cc4428b2360938d4b54d2d41 (diff)
downloadvimium-3e0378d0bc5d85ffec0ef49f7c421edbe9c073ec.tar.bz2
Modes; rework PostFindMode (again).
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index ebb3e8bc..2b35f0de 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -101,9 +101,7 @@ class Mode
if @options.exitOnClick
@push
_name: "mode-#{@id}/exitOnClick"
- "click": (event) => @alwaysContinueBubbling =>
- @clickEvent = event
- @exit()
+ "click": (event) => @alwaysContinueBubbling => @exit event
# If @options.trackState is truthy, then the mode mainatins the current state in @enabled and @passKeys,
# and calls @registerStateChange() (if defined) whenever the state changes.