MCPcopy Index your code
hub / github.com/csev/py4e / runInOp

Function runInOp

tools/pythonauto/static/codemirrorepl/codemirror.js:1956–1961  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

1954
1955 // Run the given function in an operation
1956 function runInOp(cm, f) {
1957 if (cm.curOp) return f();
1958 startOperation(cm);
1959 try { return f(); }
1960 finally { endOperation(cm); }
1961 }
1962 // Wraps a function in an operation. Returns the wrapped function.
1963 function operation(cm, f) {
1964 return function() {

Callers 4

CodeMirrorFunction · 0.70
highlightWorkerFunction · 0.70
deleteNearSelectionFunction · 0.70
codemirror.jsFile · 0.70

Calls 3

startOperationFunction · 0.70
endOperationFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected