Browse Source

Fixed ItemSet not updating on change in DataSet

css_transitions
jos 10 years ago
parent
commit
19dfc92458
2 changed files with 6 additions and 7 deletions
  1. +0
    -1
      src/timeline/Range.js
  2. +6
    -6
      src/timeline/component/ItemSet.js

+ 0
- 1
src/timeline/Range.js View File

@ -7,7 +7,6 @@
* @param {Object} [options] See description at Range.setOptions
*/
function Range(timeline, options) {
this.id = util.randomUUID();
this.start = null; // Number
this.end = null; // Number

+ 6
- 6
src/timeline/component/ItemSet.js View File

@ -26,26 +26,26 @@ function ItemSet(timeline, options) {
// listeners for the DataSet of the items
this.itemListeners = {
'add': function (event, params, senderId) {
if (senderId != me.id) me._onAdd(params.items);
me._onAdd(params.items);
},
'update': function (event, params, senderId) {
if (senderId != me.id) me._onUpdate(params.items);
me._onUpdate(params.items);
},
'remove': function (event, params, senderId) {
if (senderId != me.id) me._onRemove(params.items);
me._onRemove(params.items);
}
};
// listeners for the DataSet of the groups
this.groupListeners = {
'add': function (event, params, senderId) {
if (senderId != me.id) me._onAddGroups(params.items);
me._onAddGroups(params.items);
},
'update': function (event, params, senderId) {
if (senderId != me.id) me._onUpdateGroups(params.items);
me._onUpdateGroups(params.items);
},
'remove': function (event, params, senderId) {
if (senderId != me.id) me._onRemoveGroups(params.items);
me._onRemoveGroups(params.items);
}
};

Loading…
Cancel
Save