Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Easy-Editor/EasyEditor
/ closeOthers
Method
closeOthers
packages/core/src/project/project.ts:228–234 ·
view source on GitHub ↗
(opened: Document)
Source
from the content-addressed store, hash-verified
226
}
227
228
closeOthers(opened: Document) {
229
this.documents.forEach(doc => {
230
if
(doc !== opened) {
231
doc.close()
232
}
233
})
234
}
235
236
/**
237
* set extra data, available
for
plugins
Callers
nothing calls this directly
Calls
2
close
Method · 0.80
forEach
Method · 0.45
Tested by
no test coverage detected