mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
Pass options to support checks
This commit is contained in:
@ -176,8 +176,9 @@ define([
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
TelemetryAPI.prototype.findSubscriptionProvider = function (domainObject) {
|
TelemetryAPI.prototype.findSubscriptionProvider = function (domainObject) {
|
||||||
|
var args = Array.prototype.slice.apply(arguments);
|
||||||
function supportsDomainObject(provider) {
|
function supportsDomainObject(provider) {
|
||||||
return provider.supportsSubscribe(domainObject);
|
return provider.supportsSubscribe.apply(provider, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.subscriptionProviders.filter(supportsDomainObject)[0];
|
return this.subscriptionProviders.filter(supportsDomainObject)[0];
|
||||||
@ -187,8 +188,9 @@ define([
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
TelemetryAPI.prototype.findRequestProvider = function (domainObject, options) {
|
TelemetryAPI.prototype.findRequestProvider = function (domainObject, options) {
|
||||||
|
var args = Array.prototype.slice.apply(arguments);
|
||||||
function supportsDomainObject(provider) {
|
function supportsDomainObject(provider) {
|
||||||
return provider.supportsRequest(domainObject);
|
return provider.supportsRequest.apply(provider, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.requestProviders.filter(supportsDomainObject)[0];
|
return this.requestProviders.filter(supportsDomainObject)[0];
|
||||||
|
Reference in New Issue
Block a user