Skip to content

Commit

Permalink
Attributes: remove unnecessary element null check
Browse files Browse the repository at this point in the history
Close gh-2201
  • Loading branch information
campersau authored and timmywil committed Apr 20, 2015
1 parent acf2d0c commit 0de798d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attributes/attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0de798d

Please sign in to comment.