aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
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 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"