From 693d801922817cdf84a92df6acda4d2bb7ed149a Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 12 Jun 2014 14:18:43 +0200 Subject: [PATCH] Moved change listener to _create --- src/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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