diff --git a/demo/boot.js b/demo/boot.js index 98c28dc6..1d89f90d 100644 --- a/demo/boot.js +++ b/demo/boot.js @@ -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); }); +}); + }); \ No newline at end of file