MCPcopy Create free account
hub / github.com/angular-ui/ui-router / closeChildAnimations

Function closeChildAnimations

test/angular/1.5/angular-animate.js:2720–2737  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2718 }
2719
2720 function closeChildAnimations(element) {
2721 var node = getDomNode(element);
2722 var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
2723 forEach(children, function(child) {
2724 var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME), 10);
2725 var animationDetails = activeAnimationsLookup.get(child);
2726 if (animationDetails) {
2727 switch (state) {
2728 case RUNNING_STATE:
2729 animationDetails.runner.end();
2730 /* falls through */
2731 case PRE_DIGEST_STATE:
2732 activeAnimationsLookup.remove(child);
2733 break;
2734 }
2735 }
2736 });
2737 }
2738
2739 function clearElementAnimationState(element) {
2740 var node = getDomNode(element);

Callers 1

queueAnimationFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected