From: jeresig Date: Sun, 10 Oct 2010 22:54:30 +0000 (-0400) Subject: Return the zeroed-out bounding box instead of passing it on. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=19b4ba35c4ef7528402067009c1b28898acc59d4 Return the zeroed-out bounding box instead of passing it on. --- diff --git a/src/offset.js b/src/offset.js index 7f654d8..bbb19c2 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,