]> source.dussan.org Git - jquery.git/commitdiff
Attr: Use typeof check for getAttribute method
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 2 Sep 2014 17:44:02 +0000 (21:44 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 2 Sep 2014 17:48:35 +0000 (21:48 +0400)
Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b

src/attributes/attr.js

index b627fe888946df3cbc3ba80b1b53ed0163b66681..caf0bc018f65847f90b33d57cfef0d1afdfd305b 100644 (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 );
                }