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