remove displaying empty obj + typo

pull/7/head
yann300 8 years ago
parent d2f55d65f2
commit 2603a133c1
  1. 5
      src/ui/TreeView.js

@ -16,9 +16,6 @@ class TreeView {
} }
render (json) { render (json) {
if (!json || !Object.keys(json).length) {
json = {' - ': ' - '}
}
var view = yo`<div>${this.renderProperties(json, true)}</div>` var view = yo`<div>${this.renderProperties(json, true)}</div>`
if (!this.view) { if (!this.view) {
this.view = view this.view = view
@ -58,7 +55,7 @@ class TreeView {
if (this.beforeJsonValueRendered) { if (this.beforeJsonValueRendered) {
this.beforeJsonValueRendered(label, item, key) this.beforeJsonValueRendered(label, item, key)
} }
return yo`<li style=${this.cssList}>${label} : <span style=${this.cssLabel} >${item}</span></li>` return yo`<li style=${this.cssList}>${label}: <span style=${this.cssLabel} >${item}</span></li>`
} }
} }

Loading…
Cancel
Save