MCPcopy
hub / github.com/witheve/Eve / runInOp

Function runInOp

src/codemirror.js:3194–3199  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

3192
3193 // Run the given function in an operation
3194 function runInOp(cm, f) {
3195 if (cm.curOp) return f();
3196 startOperation(cm);
3197 try { return f(); }
3198 finally { endOperation(cm); }
3199 }
3200 // Wraps a function in an operation. Returns the wrapped function.
3201 function operation(cm, f) {
3202 return function() {

Callers 4

handlePasteFunction · 0.85
codemirror.jsFile · 0.85
highlightWorkerFunction · 0.85
deleteNearSelectionFunction · 0.85

Calls 3

startOperationFunction · 0.85
endOperationFunction · 0.85
fFunction · 0.70

Tested by

no test coverage detected