Commit 19b4ba35 authored by jeresig's avatar jeresig

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

parent 26db3f09
...@@ -25,7 +25,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment