]> 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:54 +0000 (15:06 -0400)
Close gh-2201

src/attributes/attr.js

index 9c962ef2d9b3955e61ac6650cf078cff831b37e3..da0ae24d924b8d32fc7b8f385b4b8b473974e872 100644 (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;
                }