Permalink
Browse files
fix($animateCss): cancel fallback timeout when animation ends normally
Previously, css animations would not cancel the timeout when the animation ends normally (calling end explicitly / transitionEnd event). This meant that the timeout callback fn was always called after 150% of the animation time was over. Since the animation was already closed at this point, it would not do any work twice, but simply remove the timer data from the element. This commit changes the behavior to cancel the timeout and remove the data when it is found during animation closing. Closes #13787
- Loading branch information
Showing
with
32 additions
and 1 deletion.
- +7 −0 src/ngAnimate/animateCss.js
- +2 −1 test/ngAnimate/.jshintrc
- +23 −0 test/ngAnimate/animateCssSpec.js