diff options
| author | Stephen Blott | 2016-03-12 08:36:18 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-28 05:44:11 +0100 |
| commit | fe2e958ebbb4157d06a963ee8479ece7f2685c94 (patch) | |
| tree | 38a7c93efe1fc7c22ed1ce2e83c0cbc74425620a /content_scripts | |
| parent | 060e2397d18de00e7ccfc68af52db87b0a4cbbae (diff) | |
| download | vimium-fe2e958ebbb4157d06a963ee8479ece7f2685c94.tar.bz2 | |
Golbal link hints; fic tests.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/link_hints.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 12c29dc2..7424b3f5 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -332,6 +332,7 @@ ClickableElements = # Generate a map of input element => label generateLabelMap: -> + @labelMap = {} labels = document.querySelectorAll("label") for label in labels forElement = label.getAttribute("for") @@ -564,7 +565,6 @@ class FilterHints @linkHintNumbers = Settings.get "linkHintNumbers" @hintKeystrokeQueue = [] @linkTextKeystrokeQueue = [] - @labelMap = {} @activeHintMarker = null # The regexp for splitting typed text and link texts. We split on sequences of non-word characters and # link-hint numbers. @@ -716,4 +716,4 @@ root = exports ? window root.LinkHints = LinkHints root.HintCoordinator = HintCoordinator # For tests: -root.AlphabetHints = AlphabetHints +extend root, {LinkHintsMode, ClickableElements, AlphabetHints} |
