MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / prepareInAnimation

Function prepareInAnimation

lib/test/angular/1.8.0/angular-animate.js:1658–1673  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1656 }
1657
1658 function prepareInAnimation() {
1659 var endingClasses = filterCssClasses(getClassVal(inAnchor));
1660 var toAdd = getUniqueValues(endingClasses, startingClasses);
1661 var toRemove = getUniqueValues(startingClasses, endingClasses);
1662
1663 var animator = $animateCss(clone, {
1664 to: calculateAnchorStyles(inAnchor),
1665 addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
1666 removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
1667 delay: true
1668 });
1669
1670 // read the comment within `prepareRegularAnimation` to understand
1671 // why this check is necessary
1672 return animator.$$willAnimate ? animator : null;
1673 }
1674
1675 function end() {
1676 clone.remove();

Callers 1

prepareAnchoredAnimationFunction · 0.70

Calls 4

filterCssClassesFunction · 0.70
getClassValFunction · 0.70
getUniqueValuesFunction · 0.70
calculateAnchorStylesFunction · 0.70

Tested by

no test coverage detected