We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5835396 commit 17e7fcdCopy full SHA for 17e7fcd
src/editor/core/event/eventbus/EventBus.ts
@@ -43,4 +43,8 @@ export class EventBus<EventMap> {
43
const eventSet = this.eventHub.get(eventName)
44
return !!eventSet && eventSet.size > 0
45
}
46
+
47
+ public dangerouslyClearAll() {
48
+ this.eventHub.clear()
49
+ }
50
src/editor/index.ts
@@ -152,6 +152,7 @@ export default class Editor {
152
draw.destroy()
153
shortcut.removeEvent()
154
contextMenu.removeEvent()
155
+ this.eventBus.dangerouslyClearAll()
156
157
// 插件
158
const plugin = new Plugin(this)
0 commit comments