()
| 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(); |
no test coverage detected