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

Method remove

packages/core/src/document/document.ts:160–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159 @action
160 remove() {
161 this.history.destroy()
162 this.designer.postEvent(DOCUMENT_EVENT.REMOVE, { id: this.id })
163 this.purge()
164 this.project.removeDocument(this)
165 }
166
167 @action
168 purge() {

Callers 1

internalRemoveNodeMethod · 0.45

Calls 4

purgeMethod · 0.95
removeDocumentMethod · 0.80
destroyMethod · 0.65
postEventMethod · 0.45

Tested by

no test coverage detected