MCPcopy Index your code
hub / github.com/witheve/Eve / methodOp

Function methodOp

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

Source from the content-addressed store, hash-verified

3209 // Used to add methods to editor and doc instances, wrapping them in
3210 // operations.
3211 function methodOp(f) {
3212 return function() {
3213 if (this.curOp) return f.apply(this, arguments);
3214 startOperation(this);
3215 try { return f.apply(this, arguments); }
3216 finally { endOperation(this); }
3217 };
3218 }
3219 function docMethodOp(f) {
3220 return function() {
3221 var cm = this.cm;

Callers 1

codemirror.jsFile · 0.85

Calls 3

startOperationFunction · 0.85
endOperationFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected