(f)
| 3209 | // Used to add methods to editor and doc instances, wrapping them in |
| 3210 | // operations. |
| 3211 | function methodOp(f) { |
| 3212 | return function() { |
| 3213 | if (this.curOp) return f.apply(this, arguments); |
| 3214 | startOperation(this); |
| 3215 | try { return f.apply(this, arguments); } |
| 3216 | finally { endOperation(this); } |
| 3217 | }; |
| 3218 | } |
| 3219 | function docMethodOp(f) { |
| 3220 | return function() { |
| 3221 | var cm = this.cm; |
no test coverage detected