]> source.dussan.org Git - jquery.git/commitdiff
Offset: Simplified a conditional
authorChris Antaki <ChrisAntaki@gmail.com>
Fri, 25 Jul 2014 20:08:42 +0000 (13:08 -0700)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 2 Sep 2014 16:29:10 +0000 (20:29 +0400)
src/offset.js

index fa51f1803ca4dff71aec52aa110d17243bb1f9e4..ffd049157955804e18243ee66562b6978a7c85c6 100644 (file)
@@ -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 );