(cm)
| 43 | |
| 44 | // Finish an operation, updating the display and signalling delayed events |
| 45 | export function endOperation(cm) { |
| 46 | let op = cm.curOp |
| 47 | if (op) finishOperation(op, group => { |
| 48 | for (let i = 0; i < group.ops.length; i++) |
| 49 | group.ops[i].cm.curOp = null |
| 50 | endOperations(group) |
| 51 | }) |
| 52 | } |
| 53 | |
| 54 | // The DOM updates done when an operation finishes are batched so |
| 55 | // that the minimum number of relayouts are required. |
no test coverage detected