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

Function endOperation

static/editor.md/lib/codemirror/lib/codemirror.js:2927–2938  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2925
2926 // Finish an operation, updating the display and signalling delayed events
2927 function endOperation(cm) {
2928 var op = cm.curOp, group = op.ownsGroup;
2929 if (!group) return;
2930
2931 try { fireCallbacksForOps(group); }
2932 finally {
2933 operationGroup = null;
2934 for (var i = 0; i < group.ops.length; i++)
2935 group.ops[i].cm.curOp = null;
2936 endOperations(group);
2937 }
2938 }
2939
2940 // The DOM updates done when an operation finishes are batched so
2941 // that the minimum number of relayouts are required.

Callers 6

CodeMirrorFunction · 0.70
runInOpFunction · 0.70
operationFunction · 0.70
methodOpFunction · 0.70
docMethodOpFunction · 0.70
codemirror.jsFile · 0.70

Calls 2

fireCallbacksForOpsFunction · 0.70
endOperationsFunction · 0.70

Tested by

no test coverage detected