MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / onDestroy

Method onDestroy

packages/core/src/engine/editor.ts:272–278  ·  view source on GitHub ↗
(listener: (editor: Editor) => void)

Source from the content-addressed store, hash-verified

270 }
271
272 onDestroy(listener: (editor: Editor) => void) {
273 this.eventBus.on(EDITOR_EVENT.DESTROY, listener)
274
275 return () => {
276 this.eventBus.off(EDITOR_EVENT.DESTROY, listener)
277 }
278 }
279
280 onBeforeExtend(listener: (editor: Editor) => void) {
281 this.eventBus.on(EDITOR_EVENT.BEFORE_EXTEND, listener)

Callers

nothing calls this directly

Calls 2

onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected