[API] Reference ObjectAPI

This commit is contained in:
Victor Woeltjen 2016-09-02 16:04:38 -07:00
parent e3dc26c130
commit 0470a02272
2 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,15 @@ define([
}); });
MCT.prototype.MCT = MCT; MCT.prototype.MCT = MCT;
/**
* Utilities for interacting with domain objects.
*
* @type {module:openmct.ObjectAPI}
* @memberof module:openmct.MCT#
* @name Objects
*/
MCT.Objects = api.Objects;
MCT.prototype.legacyExtension = function (category, extension) { MCT.prototype.legacyExtension = function (category, extension) {
this.legacyBundle.extensions[category] = this.legacyBundle.extensions[category] =
this.legacyBundle.extensions[category] || []; this.legacyBundle.extensions[category] || [];

View File

@ -15,6 +15,11 @@ define([
A new Object API. A new Object API.
*/ */
/**
* Utilities for loading, saving, and manipulating domain objects.
* @interface ObjectAPI
* @memberof module:openmct
*/
var Objects = {}, var Objects = {},
ROOT_REGISTRY = [], ROOT_REGISTRY = [],
PROVIDER_REGISTRY = {}, PROVIDER_REGISTRY = {},