From: Bastian Buchholz Date: Mon, 13 Apr 2015 08:37:42 +0000 (+0200) Subject: Attributes: remove unnecessary element null check X-Git-Tag: 3.0.0-alpha1+compat~87 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0de798d6c2277a286c90e08de669a23e6e12a4a2;p=jquery.git Attributes: remove unnecessary element null check Close gh-2201 --- diff --git a/src/attributes/attr.js b/src/attributes/attr.js index 9c962ef2d..da0ae24d9 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -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; }