aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-02-01 09:05:36 +0100
committerache <ache@ache.one>2018-02-01 09:05:36 +0100
commit273cc824bfe648246ecab64492a87603991133d1 (patch)
treeb5e31539815d0b16003a17202577831a78537983
parentTest in comment (diff)
Fix no param
-rw-r--r--app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.js b/app.js
index ade15df..bb24227 100644
--- a/app.js
+++ b/app.js
@@ -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 += ' '