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 892625b3c3
commit 55ac56aeda

View File

@ -27,7 +27,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;
}