MCPcopy Create free account
hub / github.com/sql-js/sql.js / methodOp

Function methodOp

GUI/codemirror/lib/codemirror.js:1987–1994  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1985 // Used to add methods to editor and doc instances, wrapping them in
1986 // operations.
1987 function methodOp(f) {
1988 return function() {
1989 if (this.curOp) return f.apply(this, arguments);
1990 startOperation(this);
1991 try { return f.apply(this, arguments); }
1992 finally { endOperation(this); }
1993 };
1994 }
1995 function docMethodOp(f) {
1996 return function() {
1997 var cm = this.cm;

Callers 1

codemirror.jsFile · 0.85

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…