Skip to content

Commit 55ac56a

Browse files
campersautimmywil
authored andcommitted
Attributes: remove unnecessary element null check
Close gh-2201
1 parent 892625b commit 55ac56a

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
@@ -27,7 +27,7 @@ jQuery.extend({
2727
nType = elem.nodeType;
2828

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

0 commit comments

Comments
 (0)