diff --git a/build/jsdoc/plugins/mct-only.js b/build/jsdoc/plugins/mct-only.js index e969e307ab..36052e0779 100644 --- a/build/jsdoc/plugins/mct-only.js +++ b/build/jsdoc/plugins/mct-only.js @@ -1,15 +1,13 @@ module.exports = { handlers: { - newDoclet: function (e) { - var doclet = e.doclet; - var memberof = doclet.memberof || ""; - var longname = doclet.longname || ""; + processingComplete: function (e) { + e.doclets.forEach(function (doclet) { + var memberof = doclet.memberof || ""; + var longname = doclet.longname || ""; - if (longname !== 'module:openmct' && memberof.indexOf('module:openmct') !== 0) { - e.preventDefault = true; - e.stopPropagation = true; - doclet.ignore = true; - } + doclet.ignore = longname !== 'module:openmct' && + memberof.indexOf('module:openmct') !== 0; + }); } } }; diff --git a/src/api/Type.js b/src/api/Type.js index 8354640a9e..179e293857 100644 --- a/src/api/Type.js +++ b/src/api/Type.js @@ -11,7 +11,7 @@ define(function () { /** * * @param {TypeDefinition} definition - * @constructor + * @class Type */ function Type(definition) { this.definition = definition; diff --git a/src/api/View.js b/src/api/View.js index 89eead851d..09e130b6c3 100644 --- a/src/api/View.js +++ b/src/api/View.js @@ -4,8 +4,7 @@ define([], function () { * A View is used to provide displayable content, and to react to * associated life cycle events. * - * @constructor - * @memberof module:openmct + * @class */ function View() { diff --git a/src/openmct.js b/src/openmct.js index d675ff0cda..6ee8437281 100644 --- a/src/openmct.js +++ b/src/openmct.js @@ -1,4 +1,4 @@ -define(['./MCT'], function (MCT) { +define(['./MCT', './api/Type'], function (MCT, Type) { /** * Open MCT is an extensible web application for building mission * control user interfaces. This module is itself an instance of @@ -6,8 +6,11 @@ define(['./MCT'], function (MCT) { * configuring and executing the application. * * @exports openmct + * @borrows Type as Type */ var openmct = new MCT(); + openmct.Type = Type; + return openmct; });