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 892625b commit 55ac56aeda786a4d1b677aefd3f5bb134ecb02ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes/attr.js
View
@@ -27,7 +27,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 55ac56a

Please sign in to comment.