mirror of
https://github.com/nasa/openmct.git
synced 2025-06-02 07:30:49 +00:00
Minor code change to improve clarity
This commit is contained in:
parent
f34e8ba61b
commit
1bb6e17829
@ -450,8 +450,7 @@ define(
|
|||||||
* occurred.
|
* occurred.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
MCTTableController.prototype.resize = function (rows){
|
MCTTableController.prototype.resize = function (rows) {
|
||||||
|
|
||||||
this.$scope.sizingRow = this.buildLargestRow(rows);
|
this.$scope.sizingRow = this.buildLargestRow(rows);
|
||||||
return this.$timeout(this.setElementSizes.bind(this));
|
return this.$timeout(this.setElementSizes.bind(this));
|
||||||
};
|
};
|
||||||
@ -468,7 +467,7 @@ define(
|
|||||||
if (this.$scope.enableSort) {
|
if (this.$scope.enableSort) {
|
||||||
displayRows = this.sortRows(displayRows.slice(0));
|
displayRows = this.sortRows(displayRows.slice(0));
|
||||||
}
|
}
|
||||||
this.$scope.displayRows = displayRows;
|
return displayRows;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -481,7 +480,7 @@ define(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.filterAndSort(newRows || []);
|
this.$scope.displayRows = this.filterAndSort(newRows || []);
|
||||||
this.resize(newRows).then(this.setVisibleRows.bind(this));
|
this.resize(newRows).then(this.setVisibleRows.bind(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -191,9 +191,6 @@ define(
|
|||||||
expect(mockTelemetryFormatter.formatRangeValue).toHaveBeenCalled();
|
expect(mockTelemetryFormatter.formatRangeValue).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
/**
|
|
||||||
* TODO: Add test for saving column config
|
|
||||||
*/
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user