aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-09-06 20:31:18 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2013-09-06 20:31:18 +0200
commit1a25f21dc3033695be1b0ff8924c4b633e1dda46 (patch)
treee6293c000cf9fcaf79d898b70fdcf450c1716d76 /src/offset.js
parent1f16b168594f5b98341fd7db0b9fb5b3e84217c8 (diff)
downloadjquery-1a25f21dc3033695be1b0ff8924c4b633e1dda46.tar.gz
jquery-1a25f21dc3033695be1b0ff8924c4b633e1dda46.zip
No ticket. Restore checking individual src/**/*.js files by jsHint.
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js3
1 files changed, 2 insertions, 1 deletions
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 ) {