Attributes: remove unnecessary element null check

Close gh-2201
This commit is contained in:
Bastian Buchholz 2015-04-13 10:37:42 +02:00 committed by Timmy Willison
parent acf2d0c36b
commit 0de798d6c2

View File

@ -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;
}