mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
chore: unRegisterHooks -> unregisterHooks
This commit is contained in:
parent
85a05f6de4
commit
791501e2e0
@ -117,7 +117,7 @@ export class Editor extends EventEmitter implements IEditor {
|
||||
const { shortCuts = [], lifeCycles = {} } = this.config;
|
||||
// unRegistShortCuts(shortCuts);
|
||||
|
||||
this.unRegisterHooks();
|
||||
this.unregisterHooks();
|
||||
|
||||
if (lifeCycles.destroy) {
|
||||
lifeCycles.destroy(this);
|
||||
@ -145,7 +145,7 @@ export class Editor extends EventEmitter implements IEditor {
|
||||
});
|
||||
};
|
||||
|
||||
unRegisterHooks = () => {
|
||||
unregisterHooks = () => {
|
||||
this.hooks.forEach(({ message, handler }) => {
|
||||
this.removeListener(message, handler);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user