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

Function endOperation

static/mergely/lib/codemirror.js:3034–3045  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3032
3033 // Finish an operation, updating the display and signalling delayed events
3034 function endOperation(cm) {
3035 var op = cm.curOp, group = op.ownsGroup;
3036 if (!group) return;
3037
3038 try { fireCallbacksForOps(group); }
3039 finally {
3040 operationGroup = null;
3041 for (var i = 0; i < group.ops.length; i++)
3042 group.ops[i].cm.curOp = null;
3043 endOperations(group);
3044 }
3045 }
3046
3047 // The DOM updates done when an operation finishes are batched so
3048 // 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