Commit 0de798d6 authored by Bastian Buchholz's avatar Bastian Buchholz Committed by Timmy Willison

Attributes: remove unnecessary element null check

Close gh-2201
parent acf2d0c3
...@@ -30,7 +30,7 @@ jQuery.extend({ ...@@ -30,7 +30,7 @@ jQuery.extend({
nType = elem.nodeType; nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes // 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; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment