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

Function docMethodOp

src/codemirror.js:3219–3227  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

3217 };
3218 }
3219 function docMethodOp(f) {
3220 return function() {
3221 var cm = this.cm;
3222 if (!cm || cm.curOp) return f.apply(this, arguments);
3223 startOperation(cm);
3224 try { return f.apply(this, arguments); }
3225 finally { endOperation(cm); }
3226 };
3227 }
3228
3229 // VIEW TRACKING
3230

Callers 1

codemirror.jsFile · 0.85

Calls 3

startOperationFunction · 0.85
endOperationFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected