(f)
| 3886 | } |
| 3887 | } |
| 3888 | function docMethodOp(f) { |
| 3889 | return function() { |
| 3890 | var cm = this.cm; |
| 3891 | if (!cm || cm.curOp) { return f.apply(this, arguments) } |
| 3892 | startOperation(cm); |
| 3893 | try { return f.apply(this, arguments) } |
| 3894 | finally { endOperation(cm); } |
| 3895 | } |
| 3896 | } |
| 3897 | |
| 3898 | // Updates the display.view data structure for a given change to the |
| 3899 | // document. From and to are in pre-change coordinates. Lendiff is |
no test coverage detected