1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/custom-wizard.js.es6

17 Zeilen
489 B
Text

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);
}
});
}
});