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

Function endOperations

lib/web/CodeMirror/src/display/operations.js:56–68  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

54// The DOM updates done when an operation finishes are batched so
55// that the minimum number of relayouts are required.
56function endOperations(group) {
57 let ops = group.ops
58 for (let i = 0; i < ops.length; i++) // Read DOM
59 endOperation_R1(ops[i])
60 for (let i = 0; i < ops.length; i++) // Write DOM (maybe)
61 endOperation_W1(ops[i])
62 for (let i = 0; i < ops.length; i++) // Read DOM
63 endOperation_R2(ops[i])
64 for (let i = 0; i < ops.length; i++) // Write DOM (maybe)
65 endOperation_W2(ops[i])
66 for (let i = 0; i < ops.length; i++) // Read DOM
67 endOperation_finish(ops[i])
68}
69
70function endOperation_R1(op) {
71 let cm = op.cm, display = cm.display

Callers 1

endOperationFunction · 0.70

Calls 5

endOperation_R1Function · 0.70
endOperation_W1Function · 0.70
endOperation_R2Function · 0.70
endOperation_W2Function · 0.70
endOperation_finishFunction · 0.70

Tested by

no test coverage detected