From 5580efa30ee11517afeffd4cbf8ab578e4a41c72 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 5 Mar 2016 15:06:08 +0000 Subject: Tweak #2036. --- content_scripts/link_hints.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'content_scripts/link_hints.coffee') diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 81623659..3b02b6e7 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -29,9 +29,9 @@ COPY_LINK_URL = chrome.runtime.sendMessage handler: "copyToClipboard", data: link.href url = link.href url = url[0..25] + "...." if 28 < url.length - @onExit = -> HUD.showForDuration "Yanked #{url}", 2000 + HUD.showForDuration "Yanked #{url}", 2000 else - @onExit = -> HUD.showForDuration "No link to yank.", 2000 + HUD.showForDuration "No link to yank.", 2000 OPEN_INCOGNITO = name: "incognito" linkActivator: (link) -> chrome.runtime.sendMessage handler: 'openUrlInIncognito', url: link.href @@ -66,8 +66,6 @@ class LinkHintsMode linkActivator: undefined # The link-hints "mode" (in the key-handler, indicator sense). hintMode: null - # Call this function on exit (if defined). - onExit: null # A count of the number of Tab presses since the last non-Tab keyboard event. tabCount: 0 @@ -417,7 +415,6 @@ class LinkHintsMode deactivateMode: -> @removeHintMarkers() @hintMode?.exit() - @onExit?() removeHintMarkers: -> DomUtils.removeElement @hintMarkerContainingDiv if @hintMarkerContainingDiv -- cgit v1.2.3