()
| 1656 | } |
| 1657 | |
| 1658 | function prepareInAnimation() { |
| 1659 | var endingClasses = filterCssClasses(getClassVal(inAnchor)); |
| 1660 | var toAdd = getUniqueValues(endingClasses, startingClasses); |
| 1661 | var toRemove = getUniqueValues(startingClasses, endingClasses); |
| 1662 | |
| 1663 | var animator = $animateCss(clone, { |
| 1664 | to: calculateAnchorStyles(inAnchor), |
| 1665 | addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd, |
| 1666 | removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove, |
| 1667 | delay: true |
| 1668 | }); |
| 1669 | |
| 1670 | // read the comment within `prepareRegularAnimation` to understand |
| 1671 | // why this check is necessary |
| 1672 | return animator.$$willAnimate ? animator : null; |
| 1673 | } |
| 1674 | |
| 1675 | function end() { |
| 1676 | clone.remove(); |
no test coverage detected