MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / docMethodOp

Function docMethodOp

lib/web/CodeMirror/src/display/operations.js:197–205  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

195 }
196}
197export function docMethodOp(f) {
198 return function() {
199 let cm = this.cm
200 if (!cm || cm.curOp) return f.apply(this, arguments)
201 startOperation(cm)
202 try { return f.apply(this, arguments) }
203 finally { endOperation(cm) }
204 }
205}

Callers 1

Doc.jsFile · 0.90

Calls 3

startOperationFunction · 0.70
endOperationFunction · 0.70
applyMethod · 0.65

Tested by

no test coverage detected