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

Function runInOp

static/js/codemirror/codemirror.js:1305–1311  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

1303 };
1304 }
1305 function runInOp(cm, f) {
1306 var withOp = !cm.curOp, result;
1307 if (withOp) startOperation(cm);
1308 try { result = f(); }
1309 finally { if (withOp) endOperation(cm); }
1310 return result;
1311 }
1312
1313 function regChange(cm, from, to, lendiff) {
1314 if (from == null) from = cm.doc.first;

Callers 2

onResizeFunction · 0.85
codemirror.jsFile · 0.85

Calls 3

startOperationFunction · 0.85
endOperationFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected