Browse Source

Pull request #2284: feture:生命周期函数支持promise

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '56635ea3344c1daacf3ec45079367a5d0d55f015':
  生命周期函数支持promise
es6
guy 3 years ago
parent
commit
5c252ad3fa
  1. 2
      src/core/4.widget.js

2
src/core/4.widget.js

@ -135,7 +135,7 @@
self.__async = true;
var beforeRenderResult = (self.options.beforeRender || self.beforeRender).call(self, render);
if (beforeRenderResult instanceof Promise) {
beforeRenderResult.then(init);
beforeRenderResult.then(render);
}
} else {
self._render();

Loading…
Cancel
Save