Browse Source

Pull request #1964: 无JIRA任务 bugfix

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

* commit '9524ab155bce27d806058bf29ecd4ad77a1cf0d2':
  bugfix
  bugfix
master
guy 3 years ago
parent
commit
e1c956449d
  1. 16
      src/core/4.widget.js

16
src/core/4.widget.js

@ -553,6 +553,14 @@
this.purgeListeners();
},
_empty: function () {
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
this._children = {};
this.element.empty();
},
isolate: function () {
if (this._parent) {
this._parent.removeWidget(this);
@ -561,11 +569,7 @@
},
empty: function () {
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
this._children = {};
this.element.empty();
this._empty();
},
// 默认的reset方法就是干掉重来
@ -576,7 +580,7 @@
}
// this._isMounted = false;
// this.purgeListeners();
this.empty();
this._empty();
this.element.unbind();
this._initCurrent();
this._init();

Loading…
Cancel
Save