mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-19 21:06:06 +08:00
fix(editor): 编辑器销毁不应该移除依赖收集任务的事件监听
This commit is contained in:
parent
098351bb21
commit
6e2b5aea47
@ -191,7 +191,6 @@ class Dep extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public reset() {
|
public reset() {
|
||||||
this.idleTask.removeAllListeners();
|
|
||||||
this.idleTask.clearTasks();
|
this.idleTask.clearTasks();
|
||||||
|
|
||||||
for (const type of Object.keys(this.watcher.getTargetsList())) {
|
for (const type of Object.keys(this.watcher.getTargetsList())) {
|
||||||
@ -202,6 +201,8 @@ class Dep extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public destroy() {
|
public destroy() {
|
||||||
|
this.idleTask.removeAllListeners();
|
||||||
|
|
||||||
this.removeAllListeners();
|
this.removeAllListeners();
|
||||||
this.reset();
|
this.reset();
|
||||||
this.removeAllPlugins();
|
this.removeAllPlugins();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user