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 ***** */
define(function(require, exports, module) {
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
"pilot/environment", "demo/demo" ];
require("pilot/fixoldbrowsers");
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" ];
require(deps, function() {
var catalog = require("pilot/plugin_manager").catalog;
catalog.registerPlugins(plugins).then(function() {
var env = require("pilot/environment").create();
catalog.startupPlugins({ env: env }).then(function() {
require("demo/demo").launch(env);
});
var catalog = require("pilot/plugin_manager").catalog;
catalog.registerPlugins(plugins).then(function() {
var env = require("pilot/environment").create();
catalog.startupPlugins({ env: env }).then(function() {
require("demo/demo").launch(env);
});
});
});