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

Function closeChildAnimations

lib/test/angular/1.5.0/angular-animate.js:2687–2704  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2685 }
2686
2687 function closeChildAnimations(element) {
2688 var node = getDomNode(element);
2689 var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
2690 forEach(children, function(child) {
2691 var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME));
2692 var animationDetails = activeAnimationsLookup.get(child);
2693 if (animationDetails) {
2694 switch (state) {
2695 case RUNNING_STATE:
2696 animationDetails.runner.end();
2697 /* falls through */
2698 case PRE_DIGEST_STATE:
2699 activeAnimationsLookup.remove(child);
2700 break;
2701 }
2702 }
2703 });
2704 }
2705
2706 function clearElementAnimationState(element) {
2707 var node = getDomNode(element);

Callers 1

queueAnimationFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected