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

(cherry picked from commit ec9b38a34f)
This commit is contained in:
Richard Gibson
2013-01-23 23:25:29 -05:00
parent 6f7b6915bf
commit 64b55f0b79
5 changed files with 9 additions and 6 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 );