Browse Source

update

master
guy 4 years ago
parent
commit
6b06a8e615
  1. 13
      src/core/widget.js

13
src/core/widget.js

@ -233,25 +233,18 @@
}
lifeHook !== false && callLifeHook(this, "beforeMount");
this._isMounted = true;
// this._mountChildren && this._mountChildren();
BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
});
this._mountChildren && this._mountChildren();
this.__afterMount(lifeHook, predicate);
lifeHook !== false && callLifeHook(this, "mounted");
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this);
return true;
},
__afterMount: function (lifeHook, predicate) {
if (this._isMounted) {
lifeHook !== false && callLifeHook(this, "mounted");
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this);
}
},
_mountChildren: null,
_update: function (nextProps, shouldUpdate) {

Loading…
Cancel
Save