Permalink
Browse files

fixes DataView.refresh bug introduced with #2189

  • Loading branch information...
1 parent feab6c5 commit b522f4ef68edd0ae22e82743a73639b52fc5f30c @mojoaxel mojoaxel committed Nov 5, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/DataView.js
View
@@ -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;

0 comments on commit b522f4e

Please sign in to comment.