From: John Resig Date: Tue, 18 Jan 2011 19:20:05 +0000 (-0500) Subject: Merge branch 'master' of https://github.com/russtacular/jquery into russtacular-master X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=c1d719b580ea78c33961113030d7fa25bcc98e6f;hp=3d0aa196c5420e7f68b32cee38f0cc740d4959c6 Merge branch 'master' of https://github.com/russtacular/jquery into russtacular-master --- diff --git a/src/offset.js b/src/offset.js index 2040c9d..a10d30a 100644 --- a/src/offset.js +++ b/src/offset.js @@ -30,7 +30,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { // Make sure we're not dealing with a disconnected DOM node if ( !box || !jQuery.contains( docElem, elem ) ) { - return box || { top: 0, left: 0 }; + return box ? { top: box.top, left: box.left } : { top: 0, left: 0 }; } var body = doc.body,