make boot dryice friendly

This commit is contained in:
Fabian Jakobs 2011-08-03 16:47:00 +02:00
commit 930c995c64

View file

@ -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);
});
}); });
}); });
});