mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +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() {
|
||||
EventEmitter.call(this);
|
||||
this.legacyBundle = { extensions: {} };
|
||||
this.legacyBundle = { extensions: {
|
||||
services: [
|
||||
{
|
||||
key: "mct",
|
||||
implementation: function () {
|
||||
return this;
|
||||
}.bind(this)
|
||||
}
|
||||
]
|
||||
} };
|
||||
|
||||
this.selection = new Selection();
|
||||
this.on('navigation', this.selection.clear.bind(this.selection));
|
||||
@ -86,13 +95,6 @@ define([
|
||||
region: region,
|
||||
key: viewKey
|
||||
});
|
||||
|
||||
this.legacyExtension('services', {
|
||||
key: 'PublicAPI',
|
||||
implementation: function () {
|
||||
return this;
|
||||
}.bind(this)
|
||||
});
|
||||
};
|
||||
|
||||
MCT.prototype.type = function (key, type) {
|
||||
|
Loading…
Reference in New Issue
Block a user