From 0de798d6c2277a286c90e08de669a23e6e12a4a2 Mon Sep 17 00:00:00 2001 From: Bastian Buchholz Date: Mon, 13 Apr 2015 10:37:42 +0200 Subject: [PATCH] Attributes: remove unnecessary element null check Close gh-2201 --- src/attributes/attr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5