diff options
| author | Stephen Blott | 2017-04-15 07:47:07 +0100 |
|---|---|---|
| committer | Stephen Blott | 2017-04-18 05:50:51 +0100 |
| commit | 41907f524275415cfd0f5336655a285105aa86e7 (patch) | |
| tree | b078c11bbf943f24ab96a4a62ca141e11dd71ff4 /lib | |
| parent | b80f11b6f36b6302b1b5bb4d033681305fe961fc (diff) | |
| download | vimium-41907f524275415cfd0f5336655a285105aa86e7.tar.bz2 | |
Better check for handlerId.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index 074062a8..06db1b9b 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -306,11 +306,11 @@ DomUtils = @suppressPropagation(event) consumeKeyup: do -> - handlerId = "not-an-id" + handlerId = null (event, callback = null) -> unless event.repeat - handlerStack.remove handlerId + handlerStack.remove handlerId if handlerId? code = event.code handlerId = handlerStack.push _name: "dom_utils/consumeKeyup" |
