[Time Controller] Allow datum retrieval from histories

WTD-1515
This commit is contained in:
Victor Woeltjen 2015-09-08 16:58:15 -07:00
parent 760f4b818f
commit 351181d38e
2 changed files with 11 additions and 2 deletions

View File

@ -79,8 +79,7 @@ define(
/**
* Change the request duration.
* @param {object|number} request the duration of historical
* data to look at; or, the request to issue
* @param {TelemetryRequest} request the request to issue
* @param {Function} [callback] a callback that will be
* invoked as new data becomes available, with the
* domain object for which new data is available.
@ -107,6 +106,12 @@ define(
.then(issueRequests);
};
self.getDatum = function (telemetryObject, series, index) {
return arguments.length > 1 ?
subscription.getDatum(telemetryObject) :
subscription.makeDatum(telemetryObject, series, index);
};
return self;
}

View File

@ -239,6 +239,10 @@ define(
initialize();
this.unlistenToMutation = addMutationListener();
// Expose makeDatum for TelemetryHandler to use, but not
// as part of public API
this.makeDatum = makeDatum;
}
TelemetrySubscription.prototype.unsubscribeAll = function () {