From bc5e9545398e0e74529738e690f16063ae41f8c0 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 29 Apr 2015 08:37:28 +0100 Subject: Fix text matching/exclusion; repair tests. --- content_scripts/link_hints.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') 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) -- cgit v1.2.3