From 8cba3218866abe9e385f48260fea6952dd1c4b01 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 2 Oct 2015 16:11:12 -0700 Subject: [PATCH] [Plot] Move throttling out of plot Move throttling associated with display bounds changes out of Plot. --- platform/features/plot/src/PlotController.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/platform/features/plot/src/PlotController.js b/platform/features/plot/src/PlotController.js index 5555d93659..19aee9ca11 100644 --- a/platform/features/plot/src/PlotController.js +++ b/platform/features/plot/src/PlotController.js @@ -66,7 +66,6 @@ define( cachedObjects = [], updater, lastBounds, - throttledRequery, handle; // Populate the scope with axis information (specifically, options @@ -188,15 +187,10 @@ define( function changeDisplayBounds(event, bounds) { self.pending = true; releaseSubscription(); - throttledRequery(); + subscribe($scope.domainObject); setBasePanZoom(bounds); } - // Reestablish/reissue request for telemetry - throttledRequery = throttle(function () { - subscribe($scope.domainObject); - }, 250); - this.modeOptions = new PlotModeOptions([], subPlotFactory); this.updateValues = updateValues;