Skip to content

Commit 4287442

Browse files
ChrisAntakimarkelog
authored andcommitted
Offset: Simplified a conditional
1 parent 29838b6 commit 4287442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/offset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jQuery.fn.extend({
9898

9999
// Support: BlackBerry 5, iOS 3 (original iPhone)
100100
// If we don't have gBCR, just use 0,0 rather than error
101-
if ( elem.getBoundingClientRect !== undefined ) {
101+
if ( elem.getBoundingClientRect ) {
102102
box = elem.getBoundingClientRect();
103103
}
104104
win = getWindow( doc );

0 commit comments

Comments
 (0)