Return the zeroed-out bounding box instead of passing it on.
This commit is contained in:
parent
26db3f0933
commit
19b4ba35c4
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue