(cm)
| 3032 | |
| 3033 | // Finish an operation, updating the display and signalling delayed events |
| 3034 | function endOperation(cm) { |
| 3035 | var op = cm.curOp, group = op.ownsGroup; |
| 3036 | if (!group) return; |
| 3037 | |
| 3038 | try { fireCallbacksForOps(group); } |
| 3039 | finally { |
| 3040 | operationGroup = null; |
| 3041 | for (var i = 0; i < group.ops.length; i++) |
| 3042 | group.ops[i].cm.curOp = null; |
| 3043 | endOperations(group); |
| 3044 | } |
| 3045 | } |
| 3046 | |
| 3047 | // The DOM updates done when an operation finishes are batched so |
| 3048 | // that the minimum number of relayouts are required. |
no test coverage detected