Minor code change to improve clarity

This commit is contained in:
Henry 2016-04-11 13:30:05 -07:00
parent f34e8ba61b
commit 1bb6e17829
2 changed files with 3 additions and 7 deletions

View File

@ -450,8 +450,7 @@ define(
* occurred.
* @private
*/
MCTTableController.prototype.resize = function (rows){
MCTTableController.prototype.resize = function (rows) {
this.$scope.sizingRow = this.buildLargestRow(rows);
return this.$timeout(this.setElementSizes.bind(this));
};
@ -468,7 +467,7 @@ define(
if (this.$scope.enableSort) {
displayRows = this.sortRows(displayRows.slice(0));
}
this.$scope.displayRows = displayRows;
return displayRows;
};
/**
@ -481,7 +480,7 @@ define(
return;
}
this.filterAndSort(newRows || []);
this.$scope.displayRows = this.filterAndSort(newRows || []);
this.resize(newRows).then(this.setVisibleRows.bind(this));
};

View File

@ -191,9 +191,6 @@ define(
expect(mockTelemetryFormatter.formatRangeValue).toHaveBeenCalled();
});
});
/**
* TODO: Add test for saving column config
*/
});
});
}