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