From caee1f520fd59e55914a12406da789531a83044e Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 27 Oct 2015 11:46:41 -0700 Subject: [PATCH] [Time Conductor] Remove unused watches from plot --- platform/features/plot/src/PlotController.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/platform/features/plot/src/PlotController.js b/platform/features/plot/src/PlotController.js index 75339b2133..0fdcf9e3eb 100644 --- a/platform/features/plot/src/PlotController.js +++ b/platform/features/plot/src/PlotController.js @@ -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);