[Selection] Go through openmct API

This commit is contained in:
Victor Woeltjen
2016-09-23 15:07:03 -07:00
parent 4ce952846c
commit c411f8fbe3
3 changed files with 17 additions and 11 deletions

16
main.js
View File

@ -68,6 +68,7 @@ requirejs.config({
});
define([
'./src/openmct',
'./platform/framework/src/Main',
'legacyRegistry',
@ -105,12 +106,11 @@ define([
'./platform/entanglement/bundle',
'./platform/search/bundle',
'./platform/status/bundle',
'./platform/commonUI/regions/bundle'
], function (Main, legacyRegistry) {
return {
legacyRegistry: legacyRegistry,
run: function () {
return new Main().run(legacyRegistry);
}
};
'./platform/commonUI/regions/bundle',
'./src/adapter/legacyBundle'
], function (openmct, Main, legacyRegistry) {
openmct.legacyRegistry = legacyRegistry;
openmct.on('start', function () {
return new Main().run(legacyRegistry);
});
});