Browse Source

Moved change listener to _create

css_transitions
jos 10 years ago
parent
commit
693d801922
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/timeline/Timeline.js

+ 1
- 1
src/timeline/Timeline.js View File

@ -65,7 +65,6 @@ function Timeline (container, items, options) {
// item set // item set
this.itemSet = new ItemSet(this.body); this.itemSet = new ItemSet(this.body);
this.components.push(this.itemSet); this.components.push(this.itemSet);
this.on('change', this.redraw.bind(this));
this.itemsData = null; // DataSet this.itemsData = null; // DataSet
this.groupsData = null; // DataSet this.groupsData = null; // DataSet
@ -136,6 +135,7 @@ Timeline.prototype._create = function (container) {
this.dom.rightContainer.appendChild(this.dom.right); this.dom.rightContainer.appendChild(this.dom.right);
this.on('rangechange', this.redraw.bind(this)); 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 // create event listeners for all interesting events, these events will be
// emitted via emitter // emitted via emitter

Loading…
Cancel
Save