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

Function docOperation

tools/pythonauto/static/codemirror/codemirror.js:1446–1454  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1444 };
1445 }
1446 function docOperation(f) {
1447 return function() {
1448 var withOp = this.cm && !this.cm.curOp, result;
1449 if (withOp) startOperation(this.cm);
1450 try { result = f.apply(this, arguments); }
1451 finally { if (withOp) endOperation(this.cm); }
1452 return result;
1453 };
1454 }
1455 function runInOp(cm, f) {
1456 var withOp = !cm.curOp, result;
1457 if (withOp) startOperation(cm);

Callers 1

codemirror.jsFile · 0.85

Calls 2

startOperationFunction · 0.70
endOperationFunction · 0.70

Tested by

no test coverage detected