(cm)
| 3053 | |
| 3054 | // Finish an operation, updating the display and signalling delayed events |
| 3055 | function endOperation(cm) { |
| 3056 | var op = cm.curOp, group = op.ownsGroup; |
| 3057 | if (!group) return; |
| 3058 | |
| 3059 | try { fireCallbacksForOps(group); } |
| 3060 | finally { |
| 3061 | operationGroup = null; |
| 3062 | for (var i = 0; i < group.ops.length; i++) |
| 3063 | group.ops[i].cm.curOp = null; |
| 3064 | endOperations(group); |
| 3065 | } |
| 3066 | } |
| 3067 | |
| 3068 | // The DOM updates done when an operation finishes are batched so |
| 3069 | // that the minimum number of relayouts are required. |
no test coverage detected