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

Function operation

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

Source from the content-addressed store, hash-verified

1961 }
1962 // Wraps a function in an operation. Returns the wrapped function.
1963 function operation(cm, f) {
1964 return function() {
1965 if (cm.curOp) return f.apply(cm, arguments);
1966 startOperation(cm);
1967 try { return f.apply(cm, arguments); }
1968 finally { endOperation(cm); }
1969 };
1970 }
1971 // Used to add methods to editor and doc instances, wrapping them in
1972 // operations.
1973 function methodOp(f) {

Callers 12

barMouseDownFunction · 0.70
registerEventHandlersFunction · 0.70
leftButtonStartDragFunction · 0.70
extendFunction · 0.70
leftButtonSelectFunction · 0.70
loadFileFunction · 0.70
onContextMenuFunction · 0.70
pollFunction · 0.70
makeChangeFunction · 0.70
makeChangeSingleDocFunction · 0.70
codemirror.jsFile · 0.70
markTextFunction · 0.70

Calls 2

startOperationFunction · 0.70
endOperationFunction · 0.70

Tested by

no test coverage detected