diff options
author | jeresig <jeresig@gmail.com> | 2010-10-10 18:54:30 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-10-10 18:54:30 -0400 |
commit | 19b4ba35c4ef7528402067009c1b28898acc59d4 (patch) | |
tree | 2402f6d1240164efd1ad81a4b3a0d81421de066c /src/offset.js | |
parent | 26db3f09331d0d69340d745a1e51d5e03a6eddb9 (diff) | |
download | jquery-19b4ba35c4ef7528402067009c1b28898acc59d4.tar.gz jquery-19b4ba35c4ef7528402067009c1b28898acc59d4.zip |
Return the zeroed-out bounding box instead of passing it on.
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 7f654d8f2..bbb19c2e3 100644 --- a/src/offset.js +++ b/src/offset.js @@ -25,7 +25,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { box = elem.getBoundingClientRect(); } catch(e) { - box = { top: 0, left: 0 }; + return { top: 0, left: 0 }; } var doc = elem.ownerDocument, |