(f)
| 3934 | // Used to add methods to editor and doc instances, wrapping them in |
| 3935 | // operations. |
| 3936 | function methodOp(f) { |
| 3937 | return function() { |
| 3938 | if (this.curOp) { return f.apply(this, arguments) } |
| 3939 | startOperation(this); |
| 3940 | try { return f.apply(this, arguments) } |
| 3941 | finally { endOperation(this); } |
| 3942 | } |
| 3943 | } |
| 3944 | function docMethodOp(f) { |
| 3945 | return function() { |
| 3946 | var cm = this.cm; |
no test coverage detected