MCPcopy Index your code
hub / github.com/DHTMLX/gantt / methodOp

Function methodOp

samples/common/codehighlight/codemirror.js:3936–3943  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

3934 // Used to add methods to editor and doc instances, wrapping them in
3935 // operations.
3936 function methodOp(f) {
3937 return function() {
3938 if (this.curOp) { return f.apply(this, arguments) }
3939 startOperation(this);
3940 try { return f.apply(this, arguments) }
3941 finally { endOperation(this); }
3942 }
3943 }
3944 function docMethodOp(f) {
3945 return function() {
3946 var cm = this.cm;

Callers 1

addEditorMethodsFunction · 0.85

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected