|
@ -5224,8 +5224,6 @@ ItemSet.prototype.setItems = function setItems(items) { |
|
|
ids, |
|
|
ids, |
|
|
oldItemsData = this.itemsData; |
|
|
oldItemsData = this.itemsData; |
|
|
|
|
|
|
|
|
console.log('setItems', items) |
|
|
|
|
|
|
|
|
|
|
|
// replace the dataset
|
|
|
// replace the dataset
|
|
|
if (!items) { |
|
|
if (!items) { |
|
|
this.itemsData = null; |
|
|
this.itemsData = null; |
|
@ -5255,8 +5253,6 @@ ItemSet.prototype.setItems = function setItems(items) { |
|
|
me.itemsData.on(event, callback, id); |
|
|
me.itemsData.on(event, callback, id); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
console.log('subscribe to dataset', me.itemsData) |
|
|
|
|
|
|
|
|
|
|
|
// draw all new items
|
|
|
// draw all new items
|
|
|
ids = this.itemsData.getIds(); |
|
|
ids = this.itemsData.getIds(); |
|
|
this._onAdd(ids); |
|
|
this._onAdd(ids); |
|
@ -5297,8 +5293,6 @@ ItemSet.prototype.removeItem = function removeItem (id) { |
|
|
* @private |
|
|
* @private |
|
|
*/ |
|
|
*/ |
|
|
ItemSet.prototype._onUpdate = function _onUpdate(ids) { |
|
|
ItemSet.prototype._onUpdate = function _onUpdate(ids) { |
|
|
console.log('_onUpdate', ids); |
|
|
|
|
|
|
|
|
|
|
|
var me = this, |
|
|
var me = this, |
|
|
items = this.items, |
|
|
items = this.items, |
|
|
itemOptions = this.itemOptions; |
|
|
itemOptions = this.itemOptions; |
|
|