From 4287442ab8bdf8d9f008f3e84ccbf7d86d0fb5db Mon Sep 17 00:00:00 2001 From: Chris Antaki Date: Fri, 25 Jul 2014 13:08:42 -0700 Subject: [PATCH] Offset: Simplified a conditional --- src/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offset.js b/src/offset.js index fa51f1803..ffd049157 100644 --- a/src/offset.js +++ b/src/offset.js @@ -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 );