(f)
| 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 |
no test coverage detected