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

Function operation

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:2094–2101  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

2092 }
2093 var nestedOperation = 0;
2094 function operation(f) {
2095 return function() {
2096 if (!nestedOperation++) startOperation();
2097 try {var result = f.apply(this, arguments);}
2098 finally {if (!--nestedOperation) endOperation();}
2099 return result;
2100 };
2101 }
2102
2103 function compoundChange(f) {
2104 history.startCompound();

Callers 12

CodeMirrorFunction · 0.70
onMouseDownFunction · 0.70
extendFunction · 0.70
loadFileFunction · 0.70
onKeyPressFunction · 0.70
onBlurFunction · 0.70
setSelectionFunction · 0.70
onContextMenuFunction · 0.70
rehideFunction · 0.70
matchBracketsFunction · 0.70
startWorkerFunction · 0.70
endOperationFunction · 0.70

Calls 2

startOperationFunction · 0.70
endOperationFunction · 0.70

Tested by

no test coverage detected