Browse Source

无JIRA任务 修改组件destory生命周期,确保所有组件的ref都会被调用

es6
zsmj 2 years ago
parent
commit
301b38035b
  1. 2
      src/core/4.widget.js

2
src/core/4.widget.js

@ -738,7 +738,7 @@
callLifeHook(this, "destroyed"); callLifeHook(this, "destroyed");
this.destroyed = null; this.destroyed = null;
this._isDestroyed = true; this._isDestroyed = true;
this._purgeRef(); // this._purgeRef(); // 清除ref的时机还是要仔细考虑一下
this.purgeListeners(); this.purgeListeners();
}, },

Loading…
Cancel
Save