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({
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;
}
......
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