MCPcopy
hub / github.com/angular-ui/ui-router / closeChildAnimations

Function closeChildAnimations

test/angular/1.4/angular-animate.js:2695–2712  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2693 }
2694
2695 function closeChildAnimations(element) {
2696 var node = getDomNode(element);
2697 var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
2698 forEach(children, function(child) {
2699 var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME));
2700 var animationDetails = activeAnimationsLookup.get(child);
2701 if (animationDetails) {
2702 switch (state) {
2703 case RUNNING_STATE:
2704 animationDetails.runner.end();
2705 /* falls through */
2706 case PRE_DIGEST_STATE:
2707 activeAnimationsLookup.remove(child);
2708 break;
2709 }
2710 }
2711 });
2712 }
2713
2714 function clearElementAnimationState(element) {
2715 var node = getDomNode(element);

Callers 1

queueAnimationFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected