diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2014-09-02 21:44:02 +0400 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2014-09-02 21:48:35 +0400 |
commit | 075da3091cda170bd8cd5ce47bad1c5b14760232 (patch) | |
tree | 1917e6b18be83934652f8ad04626936ed10ffd0f | |
parent | 15a609f7663c4348ab7f1acbc9e566ec20bb717c (diff) | |
download | jquery-075da3091cda170bd8cd5ce47bad1c5b14760232.tar.gz jquery-075da3091cda170bd8cd5ce47bad1c5b14760232.zip |
Attr: Use typeof check for getAttribute method
Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b
-rw-r--r-- | src/attributes/attr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js index b627fe888..caf0bc018 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -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 ); } |