MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / docMethodOp

Function docMethodOp

static/libs/codemirror.js:3888–3896  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

3886 }
3887}
3888function docMethodOp(f) {
3889 return function() {
3890 var cm = this.cm;
3891 if (!cm || cm.curOp) { return f.apply(this, arguments) }
3892 startOperation(cm);
3893 try { return f.apply(this, arguments) }
3894 finally { endOperation(cm); }
3895 }
3896}
3897
3898// Updates the display.view data structure for a given change to the
3899// document. From and to are in pre-change coordinates. Lendiff is

Callers 1

codemirror.jsFile · 0.85

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected