diff options
author | ache <ache@ache.one> | 2018-02-01 09:05:36 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-02-01 09:05:36 +0100 |
commit | 273cc824bfe648246ecab64492a87603991133d1 (patch) | |
tree | b5e31539815d0b16003a17202577831a78537983 | |
parent | Test in comment (diff) |
Fix no param
-rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,10 +14,10 @@ function prop2HTML( prop ) { if( 'id' in prop && prop['id'] ) { html += ' id=' + prop['id']; } - if( 'class' in prop ) { + if( 'class' in prop && prop['class'] ) { html += ' class="' + prop['class'].join(' ') + '"'; } - if( 'key' in prop ) { + if( 'key' in prop && prop['key'] ) { Object.entries(prop['key']).forEach( ([key, value]) => { html += ' ' |