diff options
| author | Stephen Blott | 2014-12-22 12:31:40 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-12-22 12:31:40 +0000 |
| commit | 58191de5302f5bf52852c686777c385965013c07 (patch) | |
| tree | e32b28f4def2e39ba86c506c1d7078b259581f6a /content_scripts | |
| parent | ffe22c01f26cc94524d4f7e3deb7ac6901583e42 (diff) | |
| parent | 76af56da84753163adc4dbf943374a10f0cb8321 (diff) | |
| download | vimium-58191de5302f5bf52852c686777c385965013c07.tar.bz2 | |
Merge branch 'link-hints-overlap' of https://github.com/mrmr1993/vimium into mrmr1993-link-hints-overlap
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 9eb7b87c..c4bf3f96 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -149,8 +149,8 @@ LinkHints = map = document.querySelector "map[name=\"#{mapName}\"]" if map and imgClientRects.length > 0 areas = map.getElementsByTagName "area" - areaRects = DomUtils.getClientRectsForAreas imgClientRects[0], areas - visibleElements = visibleElements.concat areaRects + areasAndRects = DomUtils.getClientRectsForAreas imgClientRects[0], areas + visibleElements.push areasAndRects... # Check aria properties to see if the element should be ignored. if (element.getAttribute("aria-hidden")?.toLowerCase() in ["", "true"] or |
