mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
Minor code change to improve clarity
This commit is contained in:
parent
f34e8ba61b
commit
1bb6e17829
@ -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));
|
||||
};
|
||||
|
||||
|
@ -191,9 +191,6 @@ define(
|
||||
expect(mockTelemetryFormatter.formatRangeValue).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
/**
|
||||
* TODO: Add test for saving column config
|
||||
*/
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user