diff options
| author | Jez Ng | 2012-09-03 19:24:47 -0400 | 
|---|---|---|
| committer | Jez Ng | 2012-09-03 21:17:46 -0400 | 
| commit | 5a42c4909ac990d87399c939903aebc4d8b26309 (patch) | |
| tree | 5385dcb139bd1c0583b4d1876323f69a7e8ea1ab /content_scripts | |
| parent | 90dfd91ffdaec6539950b2f9229cfabfd186bb1e (diff) | |
| download | vimium-5a42c4909ac990d87399c939903aebc4d8b26309.tar.bz2 | |
Make hints tests pass again.
Convert them to Coffeescript at the same time.
We really need to set up some automated way of running these tests, to
ensure they don't keep breaking.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/link_hints.coffee | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 5cdbc6a7..1d5d668a 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -178,9 +178,9 @@ LinkHints =        else if (linksMatched.length == 1)          @activateLink(linksMatched[0], delay)        else -        for i, marker of hintMarkers +        for marker in hintMarkers            @hideMarker(marker) -        for i, matched of linksMatched +        for matched in linksMatched            @showMarker(matched, @markerMatcher.hintKeystrokeQueue.length)      false # We've handled this key, so prevent propagation. @@ -404,7 +404,7 @@ filterHints =      if (event.keyCode == keyCodes.enter)        # activate the lowest-numbered link hint that is visible        for marker in hintMarkers -        if (marker.style.display  != "none") +        if (marker.style.display != "none")            return { linksMatched: [ marker ] }      else if (event.keyCode == keyCodes.backspace || event.keyCode == keyCodes.deleteKey)        # backspace clears hint key queue first, then acts on link text key queue. | 
