[Plot] Move throttling out of plot

Move throttling associated with display bounds changes out
of Plot.
This commit is contained in:
Victor Woeltjen
2015-10-02 16:11:12 -07:00
parent dd83816035
commit 8cba321886

View File

@ -66,7 +66,6 @@ define(
cachedObjects = [], cachedObjects = [],
updater, updater,
lastBounds, lastBounds,
throttledRequery,
handle; handle;
// Populate the scope with axis information (specifically, options // Populate the scope with axis information (specifically, options
@ -188,15 +187,10 @@ define(
function changeDisplayBounds(event, bounds) { function changeDisplayBounds(event, bounds) {
self.pending = true; self.pending = true;
releaseSubscription(); releaseSubscription();
throttledRequery(); subscribe($scope.domainObject);
setBasePanZoom(bounds); setBasePanZoom(bounds);
} }
// Reestablish/reissue request for telemetry
throttledRequery = throttle(function () {
subscribe($scope.domainObject);
}, 250);
this.modeOptions = new PlotModeOptions([], subPlotFactory); this.modeOptions = new PlotModeOptions([], subPlotFactory);
this.updateValues = updateValues; this.updateValues = updateValues;