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

Function docMethodOp

static/mergely/lib/codemirror.js:3198–3206  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

3196 };
3197 }
3198 function docMethodOp(f) {
3199 return function() {
3200 var cm = this.cm;
3201 if (!cm || cm.curOp) return f.apply(this, arguments);
3202 startOperation(cm);
3203 try { return f.apply(this, arguments); }
3204 finally { endOperation(cm); }
3205 };
3206 }
3207
3208 // VIEW TRACKING
3209

Callers 1

codemirror.jsFile · 0.70

Calls 2

startOperationFunction · 0.70
endOperationFunction · 0.70

Tested by

no test coverage detected