Skip to content

Commit a13d0b7

Browse files
committed
[Examples] Move examples out of main.js
...such that they are not compiled into the Open MCT that is used as the basis for non-example applications. Addresses nasa#835
1 parent 9e5689f commit a13d0b7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
</script>
3131
<script type="text/javascript">
3232
require(['main'], function (mct) {
33-
mct.run();
33+
require([
34+
'./example/imagery/bundle',
35+
'./example/eventGenerator/bundle',
36+
'./example/generator/bundle'
37+
], mct.run.bind(mct));
3438
});
3539
</script>
3640
<link rel="stylesheet" href="platform/commonUI/general/res/css/startup-base.css">

main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ define([
8989
'./platform/entanglement/bundle',
9090
'./platform/search/bundle',
9191
'./platform/status/bundle',
92-
'./platform/commonUI/regions/bundle',
93-
94-
'./example/imagery/bundle',
95-
'./example/eventGenerator/bundle',
96-
'./example/generator/bundle'
92+
'./platform/commonUI/regions/bundle'
9793
], function (Main, legacyRegistry) {
9894
'use strict';
9995

@@ -103,4 +99,4 @@ define([
10399
return new Main().run(legacyRegistry);
104100
}
105101
};
106-
});
102+
});

0 commit comments

Comments
 (0)