mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
[API] Move mct service up
This commit is contained in:
parent
1d31fe8d02
commit
7bf265b478
18
src/MCT.js
18
src/MCT.js
@ -21,7 +21,16 @@ define([
|
|||||||
) {
|
) {
|
||||||
function MCT() {
|
function MCT() {
|
||||||
EventEmitter.call(this);
|
EventEmitter.call(this);
|
||||||
this.legacyBundle = { extensions: {} };
|
this.legacyBundle = { extensions: {
|
||||||
|
services: [
|
||||||
|
{
|
||||||
|
key: "mct",
|
||||||
|
implementation: function () {
|
||||||
|
return this;
|
||||||
|
}.bind(this)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
} };
|
||||||
|
|
||||||
this.selection = new Selection();
|
this.selection = new Selection();
|
||||||
this.on('navigation', this.selection.clear.bind(this.selection));
|
this.on('navigation', this.selection.clear.bind(this.selection));
|
||||||
@ -86,13 +95,6 @@ define([
|
|||||||
region: region,
|
region: region,
|
||||||
key: viewKey
|
key: viewKey
|
||||||
});
|
});
|
||||||
|
|
||||||
this.legacyExtension('services', {
|
|
||||||
key: 'PublicAPI',
|
|
||||||
implementation: function () {
|
|
||||||
return this;
|
|
||||||
}.bind(this)
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
MCT.prototype.type = function (key, type) {
|
MCT.prototype.type = function (key, type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user