MCPcopy Create free account
hub / github.com/TruthHun/BookStack / docMethodOp

Function docMethodOp

static/editor.md/lib/codemirror/lib/codemirror.js:3089–3097  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

3087 };
3088 }
3089 function docMethodOp(f) {
3090 return function() {
3091 var cm = this.cm;
3092 if (!cm || cm.curOp) return f.apply(this, arguments);
3093 startOperation(cm);
3094 try { return f.apply(this, arguments); }
3095 finally { endOperation(cm); }
3096 };
3097 }
3098
3099 // VIEW TRACKING
3100

Callers 1

codemirror.jsFile · 0.70

Calls 2

startOperationFunction · 0.70
endOperationFunction · 0.70

Tested by

no test coverage detected