MCPcopy
hub / github.com/nwutils/nw-sample-apps / operation

Function operation

mini-code-edit/cm/lib/codemirror.js:1894–1901  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1892 }
1893 var nestedOperation = 0;
1894 function operation(f) {
1895 return function() {
1896 if (!nestedOperation++) startOperation();
1897 try {var result = f.apply(this, arguments);}
1898 finally {if (!--nestedOperation) endOperation();}
1899 return result;
1900 };
1901 }
1902
1903 function compoundChange(f) {
1904 history.startCompound();

Callers 12

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

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected