Browse Source

Fixed #1071: HTML contents of a group not cleared when the contents is updated

flowchartTest
jos 8 years ago
parent
commit
8543123236
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      HISTORY.md
  2. +3
    -0
      lib/timeline/component/Group.js

+ 1
- 0
HISTORY.md View File

@ -15,6 +15,7 @@ http://visjs.org
### Timeline
- Fixed #1001: First element of group style being cut.
- Fixed #1071: HTML contents of a group not cleared when the contents is updated.
## 2015-07-03, version 4.4.0

+ 3
- 0
lib/timeline/component/Group.js View File

@ -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) {

Loading…
Cancel
Save