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

Function methodOp

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

Source from the content-addressed store, hash-verified

3878// Used to add methods to editor and doc instances, wrapping them in
3879// operations.
3880function methodOp(f) {
3881 return function() {
3882 if (this.curOp) { return f.apply(this, arguments) }
3883 startOperation(this);
3884 try { return f.apply(this, arguments) }
3885 finally { endOperation(this); }
3886 }
3887}
3888function docMethodOp(f) {
3889 return function() {
3890 var cm = this.cm;

Callers 1

addEditorMethodsFunction · 0.85

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected