Browse Source

无JIRA 组件销毁的时候ref处理

research/test
翠屏山最速下山传说 11 months ago
parent
commit
9fd1fd58fb
  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