Permalink
Browse files

Attr: Use typeof check for getAttribute method

  • Loading branch information...
markelog committed Sep 2, 2014
1 parent 15a609f commit 075da3091cda170bd8cd5ce47bad1c5b14760232
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes/attr.js
View
@@ -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 );
}

0 comments on commit 075da30

Please sign in to comment.