custom-wizard.js.es6 489 B

12345678910111213141516
  1. import WizardApplication from 'wizard/wizard';
  2. export default WizardApplication.extend({
  3. rootElement: '#custom-wizard-main',
  4. start() {
  5. Object.keys(requirejs._eak_seen).forEach(key => {
  6. if (/\/initializers\//.test(key)) {
  7. console.log('running initializer', key);
  8. const module = requirejs(key, null, null, true);
  9. if (!module) { throw new Error(key + ' must export an initializer.'); }
  10. this.initializer(module.default);
  11. }
  12. });
  13. }
  14. });