From 0470a022725b4dbd1736563a378e5c701a5db786 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 2 Sep 2016 16:04:38 -0700 Subject: [PATCH] [API] Reference ObjectAPI --- src/MCT.js | 9 +++++++++ src/api/objects/ObjectAPI.js | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/src/MCT.js b/src/MCT.js index 8046d878f7..772e844b4c 100644 --- a/src/MCT.js +++ b/src/MCT.js @@ -58,6 +58,15 @@ define([ }); 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) { this.legacyBundle.extensions[category] = this.legacyBundle.extensions[category] || []; diff --git a/src/api/objects/ObjectAPI.js b/src/api/objects/ObjectAPI.js index 366c3f3e56..60640a2338 100644 --- a/src/api/objects/ObjectAPI.js +++ b/src/api/objects/ObjectAPI.js @@ -15,6 +15,11 @@ define([ A new Object API. */ + /** + * Utilities for loading, saving, and manipulating domain objects. + * @interface ObjectAPI + * @memberof module:openmct + */ var Objects = {}, ROOT_REGISTRY = [], PROVIDER_REGISTRY = {},