Return the zeroed-out bounding box instead of passing it on.

This commit is contained in:
jeresig 2010-10-10 18:54:30 -04:00
parent 26db3f0933
commit 19b4ba35c4

View file

@ -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,