diff options
| author | mrmr1993 | 2014-12-22 11:56:18 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-12-22 11:56:18 +0000 |
| commit | 76af56da84753163adc4dbf943374a10f0cb8321 (patch) | |
| tree | 1de61e9ae6fa10cd9e1a8ec7c7e935873286cdfd /content_scripts | |
| parent | 15d094675c4e354becf58b5f66754dd939d5daeb (diff) | |
| download | vimium-76af56da84753163adc4dbf943374a10f0cb8321.tar.bz2 | |
Use push with a splat rather than concat
Diffstat (limited to 'content_scripts')
| -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 616d40ee..c4bf3f96 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -150,7 +150,7 @@ LinkHints = if map and imgClientRects.length > 0 areas = map.getElementsByTagName "area" areasAndRects = DomUtils.getClientRectsForAreas imgClientRects[0], areas - visibleElements = visibleElements.concat areasAndRects + visibleElements.push areasAndRects... # Check aria properties to see if the element should be ignored. if (element.getAttribute("aria-hidden")?.toLowerCase() in ["", "true"] or |
