diff options
| author | Stephen Blott | 2015-06-03 12:02:47 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-06-03 12:02:47 +0100 |
| commit | e79fe062bc84b1530ec266a12f9323aa53cb89e4 (patch) | |
| tree | 955adc9ddbd6033492aaf5a812a759e5d7ed7113 /content_scripts | |
| parent | 03ef7f2a8525e8fbfc67b04d7a0ce47522449d03 (diff) | |
| download | vimium-e79fe062bc84b1530ec266a12f9323aa53cb89e4.tar.bz2 | |
Fix tests for #1713...
... which is weird, because the tests are passing here. Let's see what
Travis makes of this.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/mode.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index b2019ef9..cbcc15f7 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -50,11 +50,11 @@ class Mode # If options.suppressAllKeyboardEvents is truthy, then all keyboard events are suppressed. This avoids # the need for modes which block all keyboard events to 1) provide handlers for all keyboard events, # and 2) worry about their return value. - if options.suppressAllKeyboardEvents + if @options.suppressAllKeyboardEvents for type in [ "keydown", "keypress", "keyup" ] - do (type) -> - handler = options[type] - options[type] = (event) -> handler? event; false + do (type) => + handler = @options[type] + @options[type] = (event) -> handler? event; false @push keydown: @options.keydown || null |
