(f)
| 1444 | }; |
| 1445 | } |
| 1446 | function docOperation(f) { |
| 1447 | return function() { |
| 1448 | var withOp = this.cm && !this.cm.curOp, result; |
| 1449 | if (withOp) startOperation(this.cm); |
| 1450 | try { result = f.apply(this, arguments); } |
| 1451 | finally { if (withOp) endOperation(this.cm); } |
| 1452 | return result; |
| 1453 | }; |
| 1454 | } |
| 1455 | function runInOp(cm, f) { |
| 1456 | var withOp = !cm.curOp, result; |
| 1457 | if (withOp) startOperation(cm); |
no test coverage detected