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