From 43646a062f30033ca01f5763506e7ede47e6a803 Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Thu, 23 Jan 2020 10:15:17 +1100 Subject: [PATCH] Remove redundant property lookup We already have it in a variable, just use that. --- source/Node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Node.js b/source/Node.js index 2cefc43..816d13b 100644 --- a/source/Node.js +++ b/source/Node.js @@ -211,7 +211,7 @@ function createElement ( doc, tag, props, children ) { for ( attr in props ) { value = props[ attr ]; if ( value !== undefined ) { - el.setAttribute( attr, props[ attr ] ); + el.setAttribute( attr, value ); } } }