guy 4 years ago
parent
commit
a2c5c86f61
  1. 14
      src/core/widget.js

14
src/core/widget.js

@ -251,12 +251,14 @@
}, },
__afterMount: function (lifeHook, predicate) { __afterMount: function (lifeHook, predicate) {
BI.each(this._children, function (i, widget) { if (this._isMounted) {
widget.__afterMount && widget.__afterMount(lifeHook, predicate); BI.each(this._children, function (i, widget) {
}); widget.__afterMount && widget.__afterMount(lifeHook, predicate);
lifeHook !== false && callLifeHook(this, "mounted"); });
this.fireEvent(BI.Events.MOUNT); lifeHook !== false && callLifeHook(this, "mounted");
predicate && predicate(this); this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this);
}
}, },
_mountChildren: null, _mountChildren: null,

Loading…
Cancel
Save