(animationDetails)
| 1515 | } |
| 1516 | |
| 1517 | function prepareRegularAnimation(animationDetails) { |
| 1518 | var element = animationDetails.element; |
| 1519 | var options = animationDetails.options || {}; |
| 1520 | |
| 1521 | if (animationDetails.structural) { |
| 1522 | // structural animations ensure that the CSS classes are always applied |
| 1523 | // before the detection starts. |
| 1524 | options.structural = options.applyClassesEarly = true; |
| 1525 | |
| 1526 | // we special case the leave animation since we want to ensure that |
| 1527 | // the element is removed as soon as the animation is over. Otherwise |
| 1528 | // a flicker might appear or the element may not be removed at all |
| 1529 | options.event = animationDetails.event; |
| 1530 | if (options.event === 'leave') { |
| 1531 | options.onDone = options.domOperation; |
| 1532 | } |
| 1533 | } else { |
| 1534 | options.event = null; |
| 1535 | } |
| 1536 | |
| 1537 | var animator = $animateCss(element, options); |
| 1538 | |
| 1539 | // the driver lookup code inside of $$animation attempts to spawn a |
| 1540 | // driver one by one until a driver returns a.$$willAnimate animator object. |
| 1541 | // $animateCss will always return an object, however, it will pass in |
| 1542 | // a flag as a hint as to whether an animation was detected or not |
| 1543 | return animator.$$willAnimate ? animator : null; |
| 1544 | } |
| 1545 | }]; |
| 1546 | }]; |
| 1547 |
no outgoing calls
no test coverage detected