MCPcopy
hub / github.com/witheve/Eve / operation

Function operation

src/codemirror.js:3201–3208  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

3199 }
3200 // Wraps a function in an operation. Returns the wrapped function.
3201 function operation(cm, f) {
3202 return function() {
3203 if (cm.curOp) return f.apply(cm, arguments);
3204 startOperation(cm);
3205 try { return f.apply(cm, arguments); }
3206 finally { endOperation(cm); }
3207 };
3208 }
3209 // Used to add methods to editor and doc instances, wrapping them in
3210 // operations.
3211 function methodOp(f) {

Callers 10

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

Calls 3

startOperationFunction · 0.85
endOperationFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected