From 66e1f46b8865ff3ae98037590fcb149d2e98e873 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 1 Mar 2016 07:27:51 +0000 Subject: Refactor hints; consistent variable naming. While we're changing this code, we can renamed the parameter here to be consistent with its naming elsewhere. --- content_scripts/link_hints.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 81d305a7..54d2980e 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -376,9 +376,9 @@ class LinkHintsMode # # When only one link hint remains, this function activates it in the appropriate way. # - activateLink: (@matchedLink, {delay, waitForEnter} = {}) -> + activateLink: (linkMatched, {delay, waitForEnter} = {}) -> @removeHintMarkers() - clickEl = @matchedLink.clickableItem + clickEl = linkMatched.clickableItem linkActivator = => @deactivateMode() @@ -392,13 +392,13 @@ class LinkHintsMode LinkHints.activateModeWithQueue() if @mode is OPEN_WITH_QUEUE if waitForEnter? and waitForEnter - new WaitForEnter @matchedLink.rect, linkActivator + new WaitForEnter linkMatched.rect, linkActivator else if delay? and 0 < delay # Install a mode to block keyboard events if the user is still typing. The intention is to prevent the # user from inadvertently launching Vimium commands when typing the link text. - new TypingProtector delay, @matchedLink?.rect, linkActivator + new TypingProtector delay, linkMatched?.rect, linkActivator else - DomUtils.flashRect @matchedLink.rect + DomUtils.flashRect linkMatched.rect linkActivator() # -- cgit v1.2.3