diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-01-23 23:25:29 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-01-27 10:04:09 -0500 |
commit | 64b55f0b7912d96c3bdae8c771b4da99c96954fd (patch) | |
tree | 09ada1566e7122e16438ad82f7807ec1a340a016 /src/attributes.js | |
parent | 6f7b6915bf457c413476faefb2159df717c2c210 (diff) | |
download | jquery-64b55f0b7912d96c3bdae8c771b4da99c96954fd.tar.gz jquery-64b55f0b7912d96c3bdae8c771b4da99c96954fd.zip |
Fix #13315 for IE9: compare typeof xmlNode.method to var instead of literal "undefined" for safer uglification
(cherry picked from commit ec9b38a34fb9bd81d1903cf12b69466f699abca5)
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attributes.js b/src/attributes.js index fd40f0018..c9e7dbc47 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -134,7 +134,7 @@ jQuery.fn.extend({ } // Toggle whole class name - } else if ( type === "undefined" || type === "boolean" ) { + } else if ( type === core_strundefined || type === "boolean" ) { if ( this.className ) { // store className if set jQuery._data( this, "__className__", this.className ); @@ -296,7 +296,7 @@ jQuery.extend({ } // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { + if ( typeof elem.getAttribute === core_strundefined ) { return jQuery.prop( elem, name, value ); } @@ -329,7 +329,7 @@ jQuery.extend({ // In IE9+, Flash objects don't have .getAttribute (#12945) // Support: IE9+ - if ( typeof elem.getAttribute !== "undefined" ) { + if ( typeof elem.getAttribute !== core_strundefined ) { ret = elem.getAttribute( name ); } |