diff --git a/src/offset.js b/src/offset.js index 7f654d8f..bbb19c2e 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,