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

Function runInOp

static/editor.md/lib/codemirror/lib/codemirror.js:3064–3069  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

3062
3063 // Run the given function in an operation
3064 function runInOp(cm, f) {
3065 if (cm.curOp) return f();
3066 startOperation(cm);
3067 try { return f(); }
3068 finally { endOperation(cm); }
3069 }
3070 // Wraps a function in an operation. Returns the wrapped function.
3071 function operation(cm, f) {
3072 return function() {

Callers 3

codemirror.jsFile · 0.70
highlightWorkerFunction · 0.70
deleteNearSelectionFunction · 0.70

Calls 3

startOperationFunction · 0.70
endOperationFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected