Skip to content

Commit

Permalink
Return the zeroed-out bounding box instead of passing it on.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Oct 10, 2010
1 parent 26db3f0 commit 19b4ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offset.js
Expand Up @@ -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,
Expand Down

0 comments on commit 19b4ba3

Please sign in to comment.