aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2014-09-02 21:44:02 +0400
committerOleg Gaidarenko <markelog@gmail.com>2014-09-02 21:48:35 +0400
commit075da3091cda170bd8cd5ce47bad1c5b14760232 (patch)
tree1917e6b18be83934652f8ad04626936ed10ffd0f
parent15a609f7663c4348ab7f1acbc9e566ec20bb717c (diff)
downloadjquery-075da3091cda170bd8cd5ce47bad1c5b14760232.tar.gz
jquery-075da3091cda170bd8cd5ce47bad1c5b14760232.zip
Attr: Use typeof check for getAttribute method
Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b
-rw-r--r--src/attributes/attr.js2
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 );
}