Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
internalRemoveNode
Method · 0.45
Calls
4
purge
Method · 0.95
removeDocument
Method · 0.80
destroy
Method · 0.65
postEvent
Method · 0.45
Tested by
no test coverage detected