mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Wizard: Step 1
This commit is contained in:
@ -4,5 +4,15 @@ import Router from 'wizard/router';
|
||||
export default Ember.Application.extend({
|
||||
rootElement: '#wizard-main',
|
||||
Resolver,
|
||||
Router
|
||||
Router,
|
||||
|
||||
start() {
|
||||
Object.keys(requirejs._eak_seen).forEach(key => {
|
||||
if (/\/initializers\//.test(key)) {
|
||||
const module = require(key, null, null, true);
|
||||
if (!module) { throw new Error(key + ' must export an initializer.'); }
|
||||
this.instanceInitializer(module.default);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user