[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 = [],
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;