Browse Source

Moved `emit('_change'...)` from Timeline.setItems to ItemSet.setItems to be consistend with ItemSet.setGroups

codeClimate
jos 8 years ago
parent
commit
717f1f148b
2 changed files with 2 additions and 3 deletions
  1. +0
    -3
      lib/timeline/Timeline.js
  2. +2
    -0
      lib/timeline/component/ItemSet.js

+ 0
- 3
lib/timeline/Timeline.js View File

@ -237,9 +237,6 @@ Timeline.prototype.setItems = function(items) {
// set items
this.itemsData = newDataSet;
this.itemSet && this.itemSet.setItems(newDataSet);
this.body.emitter.emit('_change', {queue: true});
};
/**

+ 2
- 0
lib/timeline/component/ItemSet.js View File

@ -726,6 +726,8 @@ ItemSet.prototype.setItems = function(items) {
// update the group holding all ungrouped items
this._updateUngrouped();
}
this.body.emitter.emit('_change', {queue: true});
};
/**

Loading…
Cancel
Save