MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / endOperation

Function endOperation

lib/web/CodeMirror/src/display/operations.js:45–52  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

43
44// Finish an operation, updating the display and signalling delayed events
45export function endOperation(cm) {
46 let op = cm.curOp
47 if (op) finishOperation(op, group => {
48 for (let i = 0; i < group.ops.length; i++)
49 group.ops[i].cm.curOp = null
50 endOperations(group)
51 })
52}
53
54// The DOM updates done when an operation finishes are batched so
55// that the minimum number of relayouts are required.

Callers 7

clearMethod · 0.90
methods.jsFile · 0.90
CodeMirrorFunction · 0.90
runInOpFunction · 0.70
operationFunction · 0.70
methodOpFunction · 0.70
docMethodOpFunction · 0.70

Calls 2

finishOperationFunction · 0.90
endOperationsFunction · 0.70

Tested by

no test coverage detected