(f)
| 3878 | // Used to add methods to editor and doc instances, wrapping them in |
| 3879 | // operations. |
| 3880 | function methodOp(f) { |
| 3881 | return function() { |
| 3882 | if (this.curOp) { return f.apply(this, arguments) } |
| 3883 | startOperation(this); |
| 3884 | try { return f.apply(this, arguments) } |
| 3885 | finally { endOperation(this); } |
| 3886 | } |
| 3887 | } |
| 3888 | function docMethodOp(f) { |
| 3889 | return function() { |
| 3890 | var cm = this.cm; |
no test coverage detected