Browse Source

Pull request #3702: 无JIRA 组件销毁的时候ref处理

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

* commit '9fd1fd58fb59cd772813728d0dfb6957bf04177d':
  无JIRA 组件销毁的时候ref处理
research/test
Dailer-刘荣歆 12 months ago committed by imp-张健
parent
commit
5626da256f
  1. 2
      packages/fineui/src/core/4.widget.js

2
packages/fineui/src/core/4.widget.js

@ -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();
} }

Loading…
Cancel
Save