|
|
@ -117,7 +117,7 @@ DataView.prototype.refresh = function () { |
|
|
|
|
|
|
|
// trigger events
|
|
|
|
if (addedIds.length) { |
|
|
|
this._trigger('add', {items: added}); |
|
|
|
this._trigger('add', {items: addedIds}); |
|
|
|
} |
|
|
|
if (removedIds.length) { |
|
|
|
this._trigger('remove', {items: removedIds, oldData: removedItems}); |
|
|
@ -397,4 +397,4 @@ DataView.prototype._trigger = DataSet.prototype._trigger; |
|
|
|
DataView.prototype.subscribe = DataView.prototype.on; |
|
|
|
DataView.prototype.unsubscribe = DataView.prototype.off; |
|
|
|
|
|
|
|
module.exports = DataView; |
|
|
|
module.exports = DataView; |