|
@ -83,6 +83,9 @@ Group.prototype.setData = function(data) { |
|
|
// update contents
|
|
|
// update contents
|
|
|
var content = data && data.content; |
|
|
var content = data && data.content; |
|
|
if (content instanceof Element) { |
|
|
if (content instanceof Element) { |
|
|
|
|
|
while (this.dom.inner.firstChild) { |
|
|
|
|
|
this.dom.inner.removeChild(this.dom.inner.firstChild); |
|
|
|
|
|
} |
|
|
this.dom.inner.appendChild(content); |
|
|
this.dom.inner.appendChild(content); |
|
|
} |
|
|
} |
|
|
else if (content !== undefined && content !== null) { |
|
|
else if (content !== undefined && content !== null) { |
|
|