diff options
Diffstat (limited to 'content_scripts/mode.coffee')
| -rw-r--r-- | content_scripts/mode.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index 22b6120f..86d3e011 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -52,8 +52,7 @@ class Mode # and 2) worry about their return value. if @options.suppressAllKeyboardEvents for type in [ "keydown", "keypress", "keyup" ] - do (type) => - handler = @options[type] + do (handler = @options[type]) => @options[type] = (event) => handler? event; @stopBubblingAndFalse @push |
