2017-09-29 13:27:03 +02:00
|
|
|
import WizardApplication from 'wizard/wizard';
|
|
|
|
|
|
|
|
export default WizardApplication.extend({
|
2017-11-02 01:50:24 +01:00
|
|
|
rootElement: '#custom-wizard-main',
|
|
|
|
|
|
|
|
start() {
|
|
|
|
Object.keys(requirejs._eak_seen).forEach(key => {
|
|
|
|
if (/\/initializers\//.test(key)) {
|
|
|
|
console.log('running initializer', key);
|
|
|
|
const module = requirejs(key, null, null, true);
|
|
|
|
if (!module) { throw new Error(key + ' must export an initializer.'); }
|
|
|
|
this.initializer(module.default);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2017-09-29 13:27:03 +02:00
|
|
|
});
|