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

Function prepareInAnimation

lib/test/angular/1.5.0/angular-animate.js:1691–1706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1689 }
1690
1691 function prepareInAnimation() {
1692 var endingClasses = filterCssClasses(getClassVal(inAnchor));
1693 var toAdd = getUniqueValues(endingClasses, startingClasses);
1694 var toRemove = getUniqueValues(startingClasses, endingClasses);
1695
1696 var animator = $animateCss(clone, {
1697 to: calculateAnchorStyles(inAnchor),
1698 addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
1699 removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
1700 delay: true
1701 });
1702
1703 // read the comment within `prepareRegularAnimation` to understand
1704 // why this check is necessary
1705 return animator.$$willAnimate ? animator : null;
1706 }
1707
1708 function end() {
1709 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