MCPcopy Create free account
hub / github.com/TruthHun/BookStack / operation

Function operation

static/mergely/lib/codemirror.js:3180–3187  ·  view source on GitHub ↗
(cm, f)

Source from the content-addressed store, hash-verified

3178 }
3179 // Wraps a function in an operation. Returns the wrapped function.
3180 function operation(cm, f) {
3181 return function() {
3182 if (cm.curOp) return f.apply(cm, arguments);
3183 startOperation(cm);
3184 try { return f.apply(cm, arguments); }
3185 finally { endOperation(cm); }
3186 };
3187 }
3188 // Used to add methods to editor and doc instances, wrapping them in
3189 // operations.
3190 function methodOp(f) {

Callers 10

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

Calls 2

startOperationFunction · 0.70
endOperationFunction · 0.70

Tested by

no test coverage detected