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