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

Function runInOp

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

Source from the content-addressed store, hash-verified

1453 };
1454 }
1455 function runInOp(cm, f) {
1456 var withOp = !cm.curOp, result;
1457 if (withOp) startOperation(cm);
1458 try { result = f(); }
1459 finally { if (withOp) endOperation(cm); }
1460 return result;
1461 }
1462
1463 function regChange(cm, from, to, lendiff) {
1464 if (from == null) from = cm.doc.first;

Callers 2

onResizeFunction · 0.70
codemirror.jsFile · 0.70

Calls 3

startOperationFunction · 0.70
endOperationFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected