diff options
| -rw-r--r-- | linkHints.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linkHints.js b/linkHints.js index 65d310b8..aba229da 100644 --- a/linkHints.js +++ b/linkHints.js @@ -149,13 +149,13 @@ var linkHintsBase = { // but floated elements. Check for this. if (clientRect && (clientRect.width == 0 || clientRect.height == 0)) { for (var j = 0; j < element.children.length; j++) { - if (window.getComputedStyle(element.children[j], null).getPropertyValue('float') != 'none') { - var childClientRect = element.children[j].getClientRects()[0]; - if (this.isVisible(element.children[j], childClientRect)) { - visibleElements.push({element: element.children[j], rect: childClientRect}); - break; - } - } + if (window.getComputedStyle(element.children[j], null).getPropertyValue('float') == 'none') + continue; + var childClientRect = element.children[j].getClientRects()[0]; + if (!this.isVisible(element.children[j], childClientRect)) + continue; + visibleElements.push({element: element.children[j], rect: childClientRect}); + break; } } } |
