|
|
@ -868,13 +868,13 @@ export class Widget extends OB { |
|
|
|
callLifeHook(this, "destroyed"); |
|
|
|
callLifeHook(this, "destroyed"); |
|
|
|
this.destroyed = null; |
|
|
|
this.destroyed = null; |
|
|
|
this._isDestroyed = true; |
|
|
|
this._isDestroyed = true; |
|
|
|
// this._purgeRef(); // 清除ref的时机还是要仔细考虑一下
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_unMount() { |
|
|
|
_unMount() { |
|
|
|
this._assetMounted(); |
|
|
|
this._assetMounted(); |
|
|
|
this.__destroy(); |
|
|
|
this.__destroy(); |
|
|
|
this.fireEvent(Events.UNMOUNT); |
|
|
|
this.fireEvent(Events.UNMOUNT); |
|
|
|
|
|
|
|
this._purgeRef(); |
|
|
|
this.purgeListeners(); |
|
|
|
this.purgeListeners(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|