Attr: Use typeof check for getAttribute method

Ref 29838b6cab
This commit is contained in:
Oleg Gaidarenko 2014-09-02 21:44:02 +04:00
parent 15a609f766
commit 075da3091c

View File

@ -32,7 +32,7 @@ jQuery.extend({
}
// Fallback to prop when attributes are not supported
if ( !elem.getAttribute ) {
if ( typeof elem.getAttribute === "undefined" ) {
return jQuery.prop( elem, name, value );
}