[Plot] Support fixed duration

Support a fixed duration for plots, WTD-1273.
This commit is contained in:
Victor Woeltjen
2015-06-20 10:28:49 -07:00
parent a82fea2166
commit fbf682d5fa
3 changed files with 52 additions and 13 deletions

View File

@ -99,7 +99,8 @@ define(
updater = new PlotUpdater(
handle,
($scope.axes[0].active || {}).key,
($scope.axes[1].active || {}).key
($scope.axes[1].active || {}).key,
15000 // 15 seconds
);
}
@ -161,7 +162,7 @@ define(
// Unsubscribe when the plot is destroyed
$scope.$on("$destroy", releaseSubscription);
// Create a throttled update function
scheduleUpdate = throttle(function () {
modeOptions.getModeHandler().getSubPlots()
@ -248,4 +249,4 @@ define(
return PlotController;
}
);
);