MCPcopy Index your code
hub / github.com/DHTMLX/gantt / runInOp

Function runInOp

samples/common/codehighlight/codemirror.js:3919–3924  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

3917
3918 // Run the given function in an operation
3919 function runInOp(cm, f) {
3920 if (cm.curOp) { return f() }
3921 startOperation(cm);
3922 try { return f() }
3923 finally { endOperation(cm); }
3924 }
3925 // Wraps a function in an operation. Returns the wrapped function.
3926 function operation(cm, f) {
3927 return function() {

Callers 6

highlightWorkerFunction · 0.85
directionChangedFunction · 0.85
codemirror.jsFile · 0.85
deleteNearSelectionFunction · 0.85
handlePasteFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 3

fFunction · 0.85
startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected