mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
[API] Update ViewRegistry to match docs
This commit is contained in:
parent
91214f2623
commit
3f20c1bb94
@ -1,26 +0,0 @@
|
||||
define([], function () {
|
||||
|
||||
/**
|
||||
* A ViewRegistry maintains the definitions for different kinds of views
|
||||
* that may occur in different places in the user interface.
|
||||
* @interface ViewRegistry
|
||||
* @memberof module:openmct
|
||||
*/
|
||||
function ViewRegistry() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a new type of view.
|
||||
*
|
||||
* @param {module:openmct.ViewProvider} provider the provider for this view
|
||||
* @method addProvider
|
||||
* @memberof module:openmct.ViewRegistry#
|
||||
*/
|
||||
ViewRegistry.prototype.addProvider = function (provider) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
return ViewRegistry;
|
||||
});
|
@ -1,4 +1,10 @@
|
||||
define([], function () {
|
||||
/**
|
||||
* A ViewRegistry maintains the definitions for different kinds of views
|
||||
* that may occur in different places in the user interface.
|
||||
* @interface ViewRegistry
|
||||
* @memberof module:openmct
|
||||
*/
|
||||
function ViewRegistry() {
|
||||
this.providers = [];
|
||||
}
|
||||
@ -9,6 +15,13 @@ define([], function () {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Register a new type of view.
|
||||
*
|
||||
* @param {module:openmct.ViewProvider} provider the provider for this view
|
||||
* @method addProvider
|
||||
* @memberof module:openmct.ViewRegistry#
|
||||
*/
|
||||
ViewRegistry.prototype.addProvider = function (provider) {
|
||||
this.providers.push(provider);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user