From 55ac56aeda786a4d1b677aefd3f5bb134ecb02ad 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 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; } -- 2.39.5