From 99afbfc0018d078959e7bf36352771d9e9206338 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sun, 9 Sep 2012 20:40:54 -0400 Subject: More lint fixes. --- lib/dom_utils.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index e7fa9c2f..30530e0d 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -87,11 +87,10 @@ DomUtils = computedStyle = window.getComputedStyle(child, null) # Ignore child elements which are not floated and not absolutely positioned for parent elements with # zero width/height - if (computedStyle.getPropertyValue('float') == 'none' && computedStyle.getPropertyValue('position') != 'absolute') - continue + continue if (computedStyle.getPropertyValue('float') == 'none' && + computedStyle.getPropertyValue('position') != 'absolute') childClientRect = @getVisibleClientRect(child) - if (childClientRect == null) - continue + continue if (childClientRect == null) return childClientRect null -- cgit v1.2.3