mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
[API] Document some public fields
This commit is contained in:
parent
d592bd1035
commit
f06f714bdc
22
src/MCT.js
22
src/MCT.js
@ -6,7 +6,8 @@ define([
|
|||||||
'text!./adapter/templates/edit-object-replacement.html',
|
'text!./adapter/templates/edit-object-replacement.html',
|
||||||
'./ui/Dialog',
|
'./ui/Dialog',
|
||||||
'./Selection',
|
'./Selection',
|
||||||
'./api/objects/object-utils'
|
'./api/objects/object-utils',
|
||||||
|
'./api/TimeConductor'
|
||||||
], function (
|
], function (
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
legacyRegistry,
|
legacyRegistry,
|
||||||
@ -15,7 +16,8 @@ define([
|
|||||||
editObjectTemplate,
|
editObjectTemplate,
|
||||||
Dialog,
|
Dialog,
|
||||||
Selection,
|
Selection,
|
||||||
objectUtils
|
objectUtils,
|
||||||
|
TimeConductor
|
||||||
) {
|
) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,7 +30,23 @@ define([
|
|||||||
EventEmitter.call(this);
|
EventEmitter.call(this);
|
||||||
this.legacyBundle = { extensions: {} };
|
this.legacyBundle = { extensions: {} };
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {Selection}
|
||||||
|
* @memberof module:openmct.MCT#
|
||||||
|
* @name selection
|
||||||
|
*/
|
||||||
this.selection = new Selection();
|
this.selection = new Selection();
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {TimeConductor}
|
||||||
|
* @memberof module:openmct.MCT#
|
||||||
|
* @name conductor
|
||||||
|
*/
|
||||||
|
this.conductor = new TimeConductor();
|
||||||
|
|
||||||
|
this.TimeConductor = this.conductor; // compatibility for prototype
|
||||||
this.on('navigation', this.selection.clear.bind(this.selection));
|
this.on('navigation', this.selection.clear.bind(this.selection));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@ define([
|
|||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
Type: Type,
|
Type: Type,
|
||||||
TimeConductor: new TimeConductor(),
|
|
||||||
View: View,
|
View: View,
|
||||||
Objects: ObjectAPI,
|
Objects: ObjectAPI,
|
||||||
Composition: CompositionAPI
|
Composition: CompositionAPI
|
||||||
|
Loading…
Reference in New Issue
Block a user