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

Function prepareInAnimation

lib/test/angular/1.4.3/angular-animate.js:1440–1455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1438 }
1439
1440 function prepareInAnimation() {
1441 var endingClasses = filterCssClasses(getClassVal(inAnchor));
1442 var toAdd = getUniqueValues(endingClasses, startingClasses);
1443 var toRemove = getUniqueValues(startingClasses, endingClasses);
1444
1445 var animator = $animateCss(clone, {
1446 to: calculateAnchorStyles(inAnchor),
1447 addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
1448 removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
1449 delay: true
1450 });
1451
1452 // read the comment within `prepareRegularAnimation` to understand
1453 // why this check is necessary
1454 return animator.$$willAnimate ? animator : null;
1455 }
1456
1457 function end() {
1458 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