From 1a25f21dc3033695be1b0ff8924c4b633e1dda46 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Fri, 6 Sep 2013 20:31:18 +0200 Subject: No ticket. Restore checking individual src/**/*.js files by jsHint. --- src/offset.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/offset.js') diff --git a/src/offset.js b/src/offset.js index 45a4a7fa8..386109506 100644 --- a/src/offset.js +++ b/src/offset.js @@ -60,7 +60,8 @@ jQuery.offset = { curOffset = curElem.offset(); curCSSTop = jQuery.css( elem, "top" ); curCSSLeft = jQuery.css( elem, "left" ); - calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1; + calculatePosition = ( position === "absolute" || position === "fixed" ) && + ( curCSSTop + curCSSLeft ).indexOf("auto") > -1; // Need to be able to calculate position if either top or left is auto and position is either absolute or fixed if ( calculatePosition ) { -- cgit v1.2.3