Fix #13315: compare typeof node.method to var instead of literal "undefined" for safer uglification

This commit is contained in:
Richard Gibson
2013-01-23 23:25:29 -05:00
parent eb47553eea
commit ec9b38a34f
6 changed files with 14 additions and 10 deletions

View File

@@ -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 );