(cm)
| 2925 | |
| 2926 | // Finish an operation, updating the display and signalling delayed events |
| 2927 | function endOperation(cm) { |
| 2928 | var op = cm.curOp, group = op.ownsGroup; |
| 2929 | if (!group) return; |
| 2930 | |
| 2931 | try { fireCallbacksForOps(group); } |
| 2932 | finally { |
| 2933 | operationGroup = null; |
| 2934 | for (var i = 0; i < group.ops.length; i++) |
| 2935 | group.ops[i].cm.curOp = null; |
| 2936 | endOperations(group); |
| 2937 | } |
| 2938 | } |
| 2939 | |
| 2940 | // The DOM updates done when an operation finishes are batched so |
| 2941 | // that the minimum number of relayouts are required. |
no test coverage detected