mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
[Time Conductor] Remove unused watches from plot
This commit is contained in:
parent
b375ede217
commit
caee1f520f
@ -176,7 +176,6 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Create a new subscription; telemetrySubscriber gets
|
||||
// to do the meaningful work here.
|
||||
function subscribe(domainObject) {
|
||||
@ -207,6 +206,7 @@ define(
|
||||
// Respond to a display bounds change (requery for data)
|
||||
function changeDisplayBounds(event, bounds) {
|
||||
var domainAxis = $scope.axes[0];
|
||||
|
||||
domainAxis.chooseOption(bounds.domain);
|
||||
plotTelemetryFormatter
|
||||
.setDomainFormat(domainAxis.active.format);
|
||||
@ -239,16 +239,9 @@ define(
|
||||
new PlotAxis("range", [], AXIS_DEFAULTS[1])
|
||||
];
|
||||
|
||||
// Request new data whenever domain selection changes;
|
||||
// ordering and bounding of data may change.
|
||||
$scope.$watch("axes[0].active.key", replot);
|
||||
|
||||
// Subscribe to telemetry when a domain object becomes available
|
||||
$scope.$watch('domainObject', subscribe);
|
||||
|
||||
// Reformat timestamps when needed
|
||||
$scope.$watch('axes[0].active.format', updateDomainFormat);
|
||||
|
||||
// Respond to external bounds changes
|
||||
$scope.$on("telemetry:display:bounds", changeDisplayBounds);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user