List fetching

This commit is contained in:
haad 2016-02-29 13:27:06 +01:00
parent 5e86dca03f
commit 425cbbe909
2 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,6 @@ class List {
const current = _.differenceWith(this._currentBatch, this._items, Node.equals); const current = _.differenceWith(this._currentBatch, this._items, Node.equals);
const others = _.differenceWith(other.items, this._items, Node.equals); const others = _.differenceWith(other.items, this._items, Node.equals);
const final = _.unionWith(current, others, Node.equals); const final = _.unionWith(current, others, Node.equals);
// const final = _.unionWith(others, current, Node.equals);
this._items = this._items.concat(final); this._items = this._items.concat(final);
this._currentBatch = []; this._currentBatch = [];
} }

View File

@ -51,7 +51,7 @@ class OrbitList extends List {
} }
}; };
// other.items.forEach((e) => e.heads.forEach(fetchRecursive)); other.items.forEach((e) => e.heads.forEach(fetchRecursive));
// console.log("--> Fetched", MaxHistory, "items from the history\n"); // console.log("--> Fetched", MaxHistory, "items from the history\n");
} }