mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 10:27:22 +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;
|
const { shortCuts = [], lifeCycles = {} } = this.config;
|
||||||
// unRegistShortCuts(shortCuts);
|
// unRegistShortCuts(shortCuts);
|
||||||
|
|
||||||
this.unRegisterHooks();
|
this.unregisterHooks();
|
||||||
|
|
||||||
if (lifeCycles.destroy) {
|
if (lifeCycles.destroy) {
|
||||||
lifeCycles.destroy(this);
|
lifeCycles.destroy(this);
|
||||||
@ -145,7 +145,7 @@ export class Editor extends EventEmitter implements IEditor {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
unRegisterHooks = () => {
|
unregisterHooks = () => {
|
||||||
this.hooks.forEach(({ message, handler }) => {
|
this.hooks.forEach(({ message, handler }) => {
|
||||||
this.removeListener(message, handler);
|
this.removeListener(message, handler);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user