mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #13315: compare typeof node.method to var instead of literal "undefined" for safer uglification
This commit is contained in:
@@ -25,7 +25,7 @@ jQuery.fn.offset = function( options ) {
|
||||
|
||||
// If we don't have gBCR, just use 0,0 rather than error
|
||||
// BlackBerry 5, iOS 3 (original iPhone)
|
||||
if ( typeof elem.getBoundingClientRect !== "undefined" ) {
|
||||
if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
|
||||
box = elem.getBoundingClientRect();
|
||||
}
|
||||
win = getWindow( doc );
|
||||
|
||||
Reference in New Issue
Block a user