diff options
| author | Stephen Blott | 2016-03-01 07:27:51 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-01 07:27:51 +0000 |
| commit | 66e1f46b8865ff3ae98037590fcb149d2e98e873 (patch) | |
| tree | d96fe5738cbc3be673cf268ffd76d4cb40bd5b6f | |
| parent | 9c37e4430b1f4fec946cc0080fb1d944a8ab7d87 (diff) | |
| download | vimium-66e1f46b8865ff3ae98037590fcb149d2e98e873.tar.bz2 | |
Refactor hints; consistent variable naming.
While we're changing this code, we can renamed the parameter here to be
consistent with its naming elsewhere.
| -rw-r--r-- | content_scripts/link_hints.coffee | 10 |
1 files changed, 5 insertions, 5 deletions
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() # |
