make boot dryice friendly
This commit is contained in:
parent
ac24a1d362
commit
930c995c64
1 changed files with 17 additions and 9 deletions
26
demo/boot.js
26
demo/boot.js
|
|
@ -35,17 +35,25 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
|
define(function(require, exports, module) {
|
||||||
|
|
||||||
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
|
require("pilot/fixoldbrowsers");
|
||||||
"pilot/environment", "demo/demo" ];
|
require("pilot/plugin_manager");
|
||||||
|
require("pilot/settings");
|
||||||
|
require("pilot/environment");
|
||||||
|
require("demo/demo");
|
||||||
|
|
||||||
|
require("pilot/index");
|
||||||
|
require("cockpit/index");
|
||||||
|
require("ace/defaults");
|
||||||
|
|
||||||
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
|
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
|
||||||
require(deps, function() {
|
var catalog = require("pilot/plugin_manager").catalog;
|
||||||
var catalog = require("pilot/plugin_manager").catalog;
|
catalog.registerPlugins(plugins).then(function() {
|
||||||
catalog.registerPlugins(plugins).then(function() {
|
var env = require("pilot/environment").create();
|
||||||
var env = require("pilot/environment").create();
|
catalog.startupPlugins({ env: env }).then(function() {
|
||||||
catalog.startupPlugins({ env: env }).then(function() {
|
require("demo/demo").launch(env);
|
||||||
require("demo/demo").launch(env);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue