mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[API] Ignore internal API after processing
This commit is contained in:
parent
f27c41014d
commit
e37510dbab
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -11,7 +11,7 @@ define(function () {
|
||||
/**
|
||||
*
|
||||
* @param {TypeDefinition} definition
|
||||
* @constructor
|
||||
* @class Type
|
||||
*/
|
||||
function Type(definition) {
|
||||
this.definition = definition;
|
||||
|
@ -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() {
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user