Skip to content

Commit

Permalink
Offset: Simplified a conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAntaki authored and markelog committed Sep 2, 2014
1 parent 29838b6 commit 4287442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offset.js
Expand Up @@ -98,7 +98,7 @@ jQuery.fn.extend({

// Support: BlackBerry 5, iOS 3 (original iPhone)
// If we don't have gBCR, just use 0,0 rather than error
if ( elem.getBoundingClientRect !== undefined ) {
if ( elem.getBoundingClientRect ) {
box = elem.getBoundingClientRect();
}
win = getWindow( doc );
Expand Down

0 comments on commit 4287442

Please sign in to comment.