mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 22:28:13 +00:00
[Roots] Add new root model provider
...to read roots from the new API's registry.
This commit is contained in:
@ -60,6 +60,13 @@ define([
|
||||
return this.providers[key.namespace] || this.fallbackProvider;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the root-level object.
|
||||
* @returns {Promise.<DomainObject>} a promise for the root object
|
||||
*/
|
||||
ObjectAPI.prototype.getRoot = function () {
|
||||
return this.rootProvider.get();
|
||||
};
|
||||
|
||||
/**
|
||||
* Register a new object provider for a particular namespace.
|
||||
|
Reference in New Issue
Block a user