(node)
| 2728 | } |
| 2729 | |
| 2730 | function closeChildAnimations(node) { |
| 2731 | var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']'); |
| 2732 | forEach(children, function(child) { |
| 2733 | var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME), 10); |
| 2734 | var animationDetails = activeAnimationsLookup.get(child); |
| 2735 | if (animationDetails) { |
| 2736 | switch (state) { |
| 2737 | case RUNNING_STATE: |
| 2738 | animationDetails.runner.end(); |
| 2739 | /* falls through */ |
| 2740 | case PRE_DIGEST_STATE: |
| 2741 | activeAnimationsLookup.delete(child); |
| 2742 | break; |
| 2743 | } |
| 2744 | } |
| 2745 | }); |
| 2746 | } |
| 2747 | |
| 2748 | function clearElementAnimationState(node) { |
| 2749 | node.removeAttribute(NG_ANIMATE_ATTR_NAME); |
no test coverage detected