0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00

Remove redundant property lookup

We already have it in a variable, just use that.
This commit is contained in:
Neil Jenkins 2020-01-23 10:15:17 +11:00
parent 9c6a3f6983
commit 43646a062f

View file

@ -211,7 +211,7 @@ function createElement ( doc, tag, props, children ) {
for ( attr in props ) { for ( attr in props ) {
value = props[ attr ]; value = props[ attr ];
if ( value !== undefined ) { if ( value !== undefined ) {
el.setAttribute( attr, props[ attr ] ); el.setAttribute( attr, value );
} }
} }
} }