MCPcopy Create free account
hub / github.com/breck7/scroll / docMethodOp

Function docMethodOp

external/.scrollLibs.js:5559–5572  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

5557 }
5558 }
5559 function docMethodOp(f) {
5560 return function () {
5561 var cm = this.cm
5562 if (!cm || cm.curOp) {
5563 return f.apply(this, arguments)
5564 }
5565 startOperation(cm)
5566 try {
5567 return f.apply(this, arguments)
5568 } finally {
5569 endOperation(cm)
5570 }
5571 }
5572 }
5573
5574 // Updates the display.view data structure for a given change to the
5575 // document. From and to are in pre-change coordinates. Lendiff is

Callers 1

.scrollLibs.jsFile · 0.85

Calls 2

startOperationFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected