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

Function examineParentAnimation

lib/test/angular/1.4.3/angular-animate.js:2380–2388  ·  view source on GitHub ↗
(node, animationDetails)

Source from the content-addressed store, hash-verified

2378 // class-based animations so that the parent classes are all present for child
2379 // animations to properly function (otherwise any CSS selectors may not work)
2380 function examineParentAnimation(node, animationDetails) {
2381 // enter/leave/move always have priority
2382 if (animationDetails.structural || !hasAnimationClasses(animationDetails.options)) return;
2383
2384 if (animationDetails.state === RUNNING_STATE) {
2385 animationDetails.runner.end();
2386 }
2387 clearElementAnimationState(node);
2388 }
2389 }
2390
2391 function areAnimationsAllowed(element, parentElement, event) {

Callers 1

Calls 2

hasAnimationClassesFunction · 0.70

Tested by

no test coverage detected