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

Function operation

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

Source from the content-addressed store, hash-verified

3924 }
3925 // Wraps a function in an operation. Returns the wrapped function.
3926 function operation(cm, f) {
3927 return function() {
3928 if (cm.curOp) { return f.apply(cm, arguments) }
3929 startOperation(cm);
3930 try { return f.apply(cm, arguments) }
3931 finally { endOperation(cm); }
3932 }
3933 }
3934 // Used to add methods to editor and doc instances, wrapping them in
3935 // operations.
3936 function methodOp(f) {

Callers 11

makeChangeFunction · 0.85
makeChangeSingleDocFunction · 0.85
markTextFunction · 0.85
leftButtonStartDragFunction · 0.85
extendFunction · 0.85
leftButtonSelectFunction · 0.85
registerEventHandlersFunction · 0.85
addEditorMethodsFunction · 0.85
codemirror.jsFile · 0.85
pollFunction · 0.85

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected