23 lines
445 B
JavaScript
23 lines
445 B
JavaScript
|
|
modulejs.define('main', ['_', 'core/event'], function (_, event) {
|
|
|
|
event.pub('beforeView');
|
|
|
|
modulejs.require('view/items');
|
|
modulejs.require('view/spacing');
|
|
modulejs.require('view/viewmode');
|
|
|
|
event.pub('beforeExt');
|
|
|
|
_.each(modulejs.state(), function (state, id) {
|
|
|
|
if (/^ext\/.+/.test(id)) {
|
|
modulejs.require(id);
|
|
}
|
|
});
|
|
|
|
modulejs.require('core/location').setLocation(document.location.href, true);
|
|
|
|
event.pub('ready');
|
|
});
|