diff options
| author | Stephen Blott | 2015-04-29 08:37:28 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-04-29 08:37:28 +0100 | 
| commit | bc5e9545398e0e74529738e690f16063ae41f8c0 (patch) | |
| tree | f04d1ff5c8f7faf2fa94ff45ef517957327acaf4 /content_scripts/link_hints.coffee | |
| parent | 61f75448a216037251264e496e147299a1e264ae (diff) | |
| download | vimium-bc5e9545398e0e74529738e690f16063ae41f8c0.tar.bz2 | |
Fix text matching/exclusion; repair tests.
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index fc95bcd8..a5be6c57 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -65,7 +65,7 @@ LinkHints =        # This allows us to exclude the text used for matching descendants from that used for matching their        # ancestors.        textLength = (el) -> el.element.textContent?.length ? 0 -      elements = elements.sort (a,b) -> textLength(a) - textLength b +      elements.sort (a,b) -> textLength(a) - textLength b      hintMarkers = (@createMarkerFor(el) for el in elements)      @getMarkerMatcher().fillInMarkers(hintMarkers) | 
