(cm)
| 5328 | |
| 5329 | // Finish an operation, updating the display and signalling delayed events |
| 5330 | function endOperation(cm) { |
| 5331 | var op = cm.curOp |
| 5332 | if (op) { |
| 5333 | finishOperation(op, function (group) { |
| 5334 | for (var i = 0; i < group.ops.length; i++) { |
| 5335 | group.ops[i].cm.curOp = null |
| 5336 | } |
| 5337 | endOperations(group) |
| 5338 | }) |
| 5339 | } |
| 5340 | } |
| 5341 | |
| 5342 | // The DOM updates done when an operation finishes are batched so |
| 5343 | // that the minimum number of relayouts are required. |
no test coverage detected