()
| 1678 | } |
| 1679 | |
| 1680 | function prepareInAnimation() { |
| 1681 | var endingClasses = filterCssClasses(getClassVal(inAnchor)); |
| 1682 | var toAdd = getUniqueValues(endingClasses, startingClasses); |
| 1683 | var toRemove = getUniqueValues(startingClasses, endingClasses); |
| 1684 | |
| 1685 | var animator = $animateCss(clone, { |
| 1686 | to: calculateAnchorStyles(inAnchor), |
| 1687 | addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, |
| 1688 | removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, |
| 1689 | delay: true |
| 1690 | }); |
| 1691 | |
| 1692 | // read the comment within `prepareRegularAnimation` to understand |
| 1693 | // why this check is necessary |
| 1694 | return animator.$$willAnimate ? animator : null; |
| 1695 | } |
| 1696 | |
| 1697 | function end() { |
| 1698 | clone.remove(); |
no test coverage detected