]> source.dussan.org Git - jquery.git/commitdiff
Return the zeroed-out bounding box instead of passing it on.
authorjeresig <jeresig@gmail.com>
Sun, 10 Oct 2010 22:54:30 +0000 (18:54 -0400)
committerjeresig <jeresig@gmail.com>
Sun, 10 Oct 2010 22:54:30 +0000 (18:54 -0400)
src/offset.js

index 7f654d8f2613d93a929c9aac45301dc4dfffad23..bbb19c2e3126f317cea98b43acd5f0b347e4c8ca 100644 (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,