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

Function endOperations

static/editor.md/lib/codemirror/lib/codemirror.js:2942–2954  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

2940 // The DOM updates done when an operation finishes are batched so
2941 // that the minimum number of relayouts are required.
2942 function endOperations(group) {
2943 var ops = group.ops;
2944 for (var i = 0; i < ops.length; i++) // Read DOM
2945 endOperation_R1(ops[i]);
2946 for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
2947 endOperation_W1(ops[i]);
2948 for (var i = 0; i < ops.length; i++) // Read DOM
2949 endOperation_R2(ops[i]);
2950 for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
2951 endOperation_W2(ops[i]);
2952 for (var i = 0; i < ops.length; i++) // Read DOM
2953 endOperation_finish(ops[i]);
2954 }
2955
2956 function endOperation_R1(op) {
2957 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