You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
296 B
JavaScript

define('main', ['underscore', 'config', 'app'], function main(_, config, App) {
'use strict';
requirejs.config(config());
return function main(options) {
var opts = _.defaults({}, options, {config: {}});
var app = new App(opts);
app.start(opts.config);
return app;
};
});