Return the zeroed-out bounding box instead of passing it on.
This commit is contained in:
parent
26db3f0933
commit
19b4ba35c4
|
@ -25,7 +25,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {
|
||||||
box = elem.getBoundingClientRect();
|
box = elem.getBoundingClientRect();
|
||||||
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
box = { top: 0, left: 0 };
|
return { top: 0, left: 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
var doc = elem.ownerDocument,
|
var doc = elem.ownerDocument,
|
||||||
|
|
Loading…
Reference in a new issue