aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/link_hints.coffee')
-rw-r--r--content_scripts/link_hints.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index a47f9263..7faa1a65 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -63,7 +63,7 @@ LinkHints =
{ id: "vimiumHintMarkerContainer", className: "vimiumReset" })
# handlerStack is declared by vimiumFrontend.js
- handlerStack.push({
+ @handlerId = handlerStack.push({
keydown: @onKeyDownInMode.bind(this, hintMarkers),
# trap all key events
keypress: -> false
@@ -163,7 +163,7 @@ LinkHints =
keyup: (event) ->
return if (event.keyCode != keyCodes.shiftKey)
LinkHints.setOpenLinkMode(!LinkHints.shouldOpenInNewTab, LinkHints.shouldOpenWithQueue, false)
- handlerStack.pop()
+ @remove()
})
# TODO(philc): Ignore keys that have modifiers.
@@ -231,7 +231,7 @@ LinkHints =
if (LinkHints.hintMarkerContainingDiv)
DomUtils.removeElement LinkHints.hintMarkerContainingDiv
LinkHints.hintMarkerContainingDiv = null
- handlerStack.pop()
+ handlerStack.remove @handlerId
HUD.hide()
@isActive = false