From 19b4ba35c4ef7528402067009c1b28898acc59d4 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sun, 10 Oct 2010 18:54:30 -0400 Subject: Return the zeroed-out bounding box instead of passing it on. --- src/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/offset.js') 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, -- cgit v1.2.3