Move DupeCheck inside of Collection

This commit is contained in:
Pete Richards 2017-07-05 10:55:42 -07:00 committed by Victor Woeltjen
parent 1378b57567
commit 0588f9190a
2 changed files with 1 additions and 2 deletions

View File

@ -190,6 +190,7 @@ define(
TelemetryCollection.prototype.add = function (items) {
var added = items.filter(this.addOne);
this.emit('added', added);
this.dupeCheck = true;
};
/**

View File

@ -292,7 +292,6 @@ define(
*/
function finishProcessing() {
telemetryCollection.add(rowData);
telemetryCollection.dupeCheck = true;
scope.rows = telemetryCollection.telemetry;
scope.loading = false;
@ -378,7 +377,6 @@ define(
function newData(domainObject, datum) {
limitEvaluator = telemetryApi.limitEvaluator(domainObject);
added = telemetryCollection.add([table.getRowValues(limitEvaluator, datum)]);
this.telemetry.dupeCheck = true;
}
objects.forEach(function (object) {