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

Function closeChildAnimations

lib/test/angular/1.4.3/angular-animate.js:2335–2352  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2333 }
2334
2335 function closeChildAnimations(element) {
2336 var node = getDomNode(element);
2337 var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
2338 forEach(children, function(child) {
2339 var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME));
2340 var animationDetails = activeAnimationsLookup.get(child);
2341 switch (state) {
2342 case RUNNING_STATE:
2343 animationDetails.runner.end();
2344 /* falls through */
2345 case PRE_DIGEST_STATE:
2346 if (animationDetails) {
2347 activeAnimationsLookup.remove(child);
2348 }
2349 break;
2350 }
2351 });
2352 }
2353
2354 function clearElementAnimationState(element) {
2355 var node = getDomNode(element);

Callers 1

queueAnimationFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected