]> source.dussan.org Git - jquery.git/commitdiff
Attributes: remove unnecessary element null check
authorBastian Buchholz <buchholz.bastian@googlemail.com>
Mon, 13 Apr 2015 08:37:42 +0000 (10:37 +0200)
committerTimmy Willison <timmywillisn@gmail.com>
Mon, 20 Apr 2015 19:06:13 +0000 (15:06 -0400)
Close gh-2201

src/attributes/attr.js

index caf0bc018f65847f90b33d57cfef0d1afdfd305b..282893ea9510086e332228273be962e82643a3ed 100644 (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;
                }