diff options
author | louisremi <louisremi@louisremi-laptop.(none)> | 2011-04-11 22:33:29 +0200 |
---|---|---|
committer | louisremi <louisremi@louisremi-laptop.(none)> | 2011-04-11 22:33:29 +0200 |
commit | 11adde5127ec496cf692237ea0d4f6217eac97b8 (patch) | |
tree | 4eafab8f2fd29e5068d39746593a88dee2ac7fb7 /src/offset.js | |
parent | cccd092fe0c3e680b6ba3fcfb3368aa3b65bd245 (diff) | |
download | jquery-11adde5127ec496cf692237ea0d4f6217eac97b8.tar.gz jquery-11adde5127ec496cf692237ea0d4f6217eac97b8.zip |
second batch
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js index a0cd7a156..b9a132b42 100644 --- a/src/offset.js +++ b/src/offset.js @@ -180,7 +180,7 @@ jQuery.offset = { curOffset = curElem.offset(), curCSSTop = jQuery.css( elem, "top" ), curCSSLeft = jQuery.css( elem, "left" ), - calculatePosition = (position === "absolute" || position === "fixed") && jQuery.inArray('auto', [curCSSTop, curCSSLeft]) > -1, + calculatePosition = (position === "absolute" || position === "fixed") && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1, props = {}, curPosition = {}, curTop, curLeft; // need to be able to calculate position if either top or left is auto and position is either absolute or fixed |