[Plot] Add comments

Add comments to plot code introduced to handle
subscribed telemetry only, to work around removal
of the cache to reduce memory usage, WTD-751.
This commit is contained in:
Victor Woeltjen
2015-01-29 12:10:00 -08:00
parent 5e2e0b4116
commit 230ba3eb5c
2 changed files with 28 additions and 4 deletions

View File

@ -69,6 +69,8 @@ define(
.forEach(updateSubplot);
}
// Reinstantiate the plot updater (e.g. because we have a
// new subscription.) This will clear the plot.
function recreateUpdater() {
updater = new PlotUpdater(
subscription,
@ -77,6 +79,7 @@ define(
);
}
// Handle new telemetry data in this plot
function updateValues() {
if (updater) {
updater.update();