unregisterAll 取消注册所有事件指令
unregisterAll
类型: MethodDeclaration
定义位置: event.ts
描述
取消注册所有事件指令
返回值
类型: void
源代码
位置: 第 189 行
public unregisterAll(): void {
const keyMap = this.keyMap
const typeMap = this.typeMap
for (const key of Object.keys(keyMap)) {
const {type, commandList} = keyMap[key]!
typeMap[type]?.remove(commandList)
this.stopEvents(commandList)
delete keyMap[key]
}
}
文档生成时间:2025/7/21 20:53:39