Browse Source

无jira任务,beforeInit加上catch

es6
Guyi 3 years ago
parent
commit
8540a4ee75
  1. 2
      src/core/4.widget.js

2
src/core/4.widget.js

@ -159,7 +159,7 @@
this.__asking = true; this.__asking = true;
var beforeInitResult = (this.options.beforeInit || this.beforeInit).call(this, init); var beforeInitResult = (this.options.beforeInit || this.beforeInit).call(this, init);
if (beforeInitResult instanceof Promise) { if (beforeInitResult instanceof Promise) {
beforeInitResult.then(init); beforeInitResult.then(init).catch(init);
} }
} else { } else {
init(); init();

Loading…
Cancel
Save