From 85f0ec02eafc60252e63667958b72188d697c423 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Sat, 11 Nov 2017 19:11:03 +0000 Subject: Remove unclear & unnecessary tabCount argument to updateVisibleMarkers --- content_scripts/link_hints.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'content_scripts') 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} -- cgit v1.2.3