mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 07:55:09 -05:00
Offset: Simplified a conditional
This commit is contained in:
committed by
Oleg Gaidarenko
parent
29838b6cab
commit
4287442ab8
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user