aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932017-11-11 19:11:03 +0000
committermrmr19932017-11-11 19:22:06 +0000
commit85f0ec02eafc60252e63667958b72188d697c423 (patch)
treef2df38f9608ff18a71c6501b2971f125a013f7f5
parentea43bf138015af760adca605692ab8876c969446 (diff)
downloadvimium-85f0ec02eafc60252e63667958b72188d697c423.tar.bz2
Remove unclear & unnecessary tabCount argument to updateVisibleMarkers
-rw-r--r--content_scripts/link_hints.coffee7
1 files changed, 4 insertions, 3 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 291f524e..118202aa 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -271,7 +271,7 @@ class LinkHintsMode
else if event.key == "Tab"
if event.shiftKey then @tabCount-- else @tabCount++
- @updateVisibleMarkers @tabCount
+ @updateVisibleMarkers()
else if event.key == " " and @markerMatcher.shouldRotateHints event
HintCoordinator.sendMessage "rotateHints"
@@ -294,9 +294,10 @@ class LinkHintsMode
handlerStack.suppressEvent
- updateVisibleMarkers: (tabCount = 0) ->
+ updateVisibleMarkers: ->
{hintKeystrokeQueue, linkTextKeystrokeQueue} = @markerMatcher
- HintCoordinator.sendMessage "updateKeyState", {hintKeystrokeQueue, linkTextKeystrokeQueue, tabCount}
+ HintCoordinator.sendMessage "updateKeyState",
+ {hintKeystrokeQueue, linkTextKeystrokeQueue, tabCount: @tabCount}
updateKeyState: ({hintKeystrokeQueue, linkTextKeystrokeQueue, tabCount}) ->
extend @markerMatcher, {hintKeystrokeQueue, linkTextKeystrokeQueue}