MCPcopy Create free account
hub / github.com/TruthHun/BookStack / endOperations

Function endOperations

static/mergely/lib/codemirror.js:3049–3061  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

3047 // The DOM updates done when an operation finishes are batched so
3048 // that the minimum number of relayouts are required.
3049 function endOperations(group) {
3050 var ops = group.ops;
3051 for (var i = 0; i < ops.length; i++) // Read DOM
3052 endOperation_R1(ops[i]);
3053 for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
3054 endOperation_W1(ops[i]);
3055 for (var i = 0; i < ops.length; i++) // Read DOM
3056 endOperation_R2(ops[i]);
3057 for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
3058 endOperation_W2(ops[i]);
3059 for (var i = 0; i < ops.length; i++) // Read DOM
3060 endOperation_finish(ops[i]);
3061 }
3062
3063 function endOperation_R1(op) {
3064 var 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