MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / startOperation

Function startOperation

static/js/codemirror/codemirror.js:1218–1232  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1216
1217 var nextOpId = 0;
1218 function startOperation(cm) {
1219 cm.curOp = {
1220 // An array of ranges of lines that have to be updated. See
1221 // updateDisplay.
1222 changes: [],
1223 updateInput: null,
1224 userSelChange: null,
1225 textChanged: null,
1226 selectionChanged: false,
1227 updateMaxLine: false,
1228 updateScrollPos: false,
1229 id: ++nextOpId
1230 };
1231 if (!delayedCallbackDepth++) delayedCallbacks = [];
1232 }
1233
1234 function endOperation(cm) {
1235 var op = cm.curOp, doc = cm.doc, display = cm.display;

Callers 6

operationFunction · 0.85
docOperationFunction · 0.85
runInOpFunction · 0.85
readInputFunction · 0.85
codemirror.jsFile · 0.85
widgetOperationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected