Skip to content

Commit 0de798d

Browse files
campersautimmywil
authored andcommitted
Attributes: remove unnecessary element null check
Close gh-2201
1 parent acf2d0c commit 0de798d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/attr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jQuery.extend({
3030
nType = elem.nodeType;
3131

3232
// don't get/set attributes on text, comment and attribute nodes
33-
if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
33+
if ( nType === 3 || nType === 8 || nType === 2 ) {
3434
return;
3535
}
3636

0 commit comments

Comments
 (0)