[API] Document some public fields

This commit is contained in:
Victor Woeltjen 2016-09-02 15:02:18 -07:00
parent d592bd1035
commit f06f714bdc
2 changed files with 20 additions and 3 deletions

View File

@ -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));
} }

View File

@ -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