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~82 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55ac56aeda786a4d1b677aefd3f5bb134ecb02ad;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 caf0bc018..282893ea9 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -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; }