MCPcopy 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

onClickFunction · 0.80
handleLockFunction · 0.80
initFunction · 0.80
onClickFunction · 0.80
handleLockFunction · 0.80

Calls 2

setExtraPropMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected