Offset: Simplified a conditional

This commit is contained in:
Chris Antaki 2014-07-25 13:08:42 -07:00 committed by Oleg Gaidarenko
parent 29838b6cab
commit 4287442ab8

View File

@ -98,7 +98,7 @@ jQuery.fn.extend({
// Support: BlackBerry 5, iOS 3 (original iPhone) // Support: BlackBerry 5, iOS 3 (original iPhone)
// If we don't have gBCR, just use 0,0 rather than error // If we don't have gBCR, just use 0,0 rather than error
if ( elem.getBoundingClientRect !== undefined ) { if ( elem.getBoundingClientRect ) {
box = elem.getBoundingClientRect(); box = elem.getBoundingClientRect();
} }
win = getWindow( doc ); win = getWindow( doc );