diff --git a/src/timeline/Timeline.js b/src/timeline/Timeline.js index c992f44d..15429a0f 100644 --- a/src/timeline/Timeline.js +++ b/src/timeline/Timeline.js @@ -65,7 +65,6 @@ function Timeline (container, items, options) { // item set this.itemSet = new ItemSet(this.body); this.components.push(this.itemSet); - this.on('change', this.redraw.bind(this)); this.itemsData = null; // DataSet this.groupsData = null; // DataSet @@ -136,6 +135,7 @@ Timeline.prototype._create = function (container) { this.dom.rightContainer.appendChild(this.dom.right); this.on('rangechange', this.redraw.bind(this)); + this.on('change', this.redraw.bind(this)); // create event listeners for all interesting events, these events will be // emitted via emitter