MCPcopy Create free account
hub / github.com/breck7/scroll / endOperation

Function endOperation

external/.scrollLibs.js:5330–5340  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

5328
5329 // Finish an operation, updating the display and signalling delayed events
5330 function endOperation(cm) {
5331 var op = cm.curOp
5332 if (op) {
5333 finishOperation(op, function (group) {
5334 for (var i = 0; i < group.ops.length; i++) {
5335 group.ops[i].cm.curOp = null
5336 }
5337 endOperations(group)
5338 })
5339 }
5340 }
5341
5342 // The DOM updates done when an operation finishes are batched so
5343 // that the minimum number of relayouts are required.

Callers 7

runInOpFunction · 0.85
operationFunction · 0.85
methodOpFunction · 0.85
docMethodOpFunction · 0.85
.scrollLibs.jsFile · 0.85
CodeMirrorFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 2

finishOperationFunction · 0.85
endOperationsFunction · 0.85

Tested by

no test coverage detected