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