MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / closeChildAnimations

Function closeChildAnimations

lib/test/angular/1.6.7/angular-animate.js:2730–2746  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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);

Callers 1

queueAnimationFunction · 0.70

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected