Browse Source

fixes DataView.refresh bug introduced with #2189

codeClimate
Alexander Wunschik 8 years ago
parent
commit
b522f4ef68
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/DataView.js

+ 2
- 2
lib/DataView.js View File

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

Loading…
Cancel
Save