Permalink
Browse files

Attributes: remove unnecessary element null check

Close gh-2201
  • Loading branch information...
campersau authored and timmywil committed Apr 13, 2015
1 parent acf2d0c commit 0de798d6c2277a286c90e08de669a23e6e12a4a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes/attr.js
View
@@ -30,7 +30,7 @@ jQuery.extend({
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+ if ( nType === 3 || nType === 8 || nType === 2 ) {
return;
}

0 comments on commit 0de798d

Please sign in to comment.