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

Method onReady

packages/core/src/document/document.ts:419–425  ·  view source on GitHub ↗
(listener: () => void)

Source from the content-addressed store, hash-verified

417 }
418
419 onReady(listener: () => void) {
420 const dispose = this.designer.onEvent(DOCUMENT_EVENT.OPEN, listener)
421
422 return () => {
423 dispose()
424 }
425 }
426
427 onNodeAdd(listener: (node: Node) => void) {
428 const dispose = this.designer.onEvent(NODE_EVENT.ADD, listener)

Callers

nothing calls this directly

Calls 1

onEventMethod · 0.80

Tested by

no test coverage detected