Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Easy-Editor/EasyEditor
/ lock
Method
lock
packages/core/src/document/node/node.ts:366–369 ·
view source on GitHub ↗
(flag = true)
Source
from the content-addressed store, hash-verified
364
}
365
366
lock(flag = true) {
367
this.setExtraProp(
'locked'
, flag)
368
this.emitter.emit(NODE_EVENT.LOCK_CHANGE, flag)
369
}
370
371
get locked() {
372
return
this.getExtraPropValue(
'locked'
) as boolean
Callers
5
onClick
Function · 0.80
handleLock
Function · 0.80
init
Function · 0.80
onClick
Function · 0.80
handleLock
Function · 0.80
Calls
2
setExtraProp
Method · 0.95
emit
Method · 0.45
Tested by
no test coverage detected