aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
authorStephen Blott2017-04-14 16:08:50 +0100
committerStephen Blott2017-04-18 05:50:51 +0100
commitb80f11b6f36b6302b1b5bb4d033681305fe961fc (patch)
treeab7897e6db1bcc9ca035ad099b34adc9732cd163 /lib/dom_utils.coffee
parent748f1dcc204d1c08d6deb683d896824a15fa4fe3 (diff)
downloadvimium-b80f11b6f36b6302b1b5bb4d033681305fe961fc.tar.bz2
Set handlerId directly to a non-id.
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 1864d973..074062a8 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -306,11 +306,11 @@ DomUtils =
@suppressPropagation(event)
consumeKeyup: do ->
- handlerId = null
+ handlerId = "not-an-id"
(event, callback = null) ->
unless event.repeat
- handlerStack.remove handlerId ? "not-an-id"
+ handlerStack.remove handlerId
code = event.code
handlerId = handlerStack.push
_name: "dom_utils/consumeKeyup"