Skip to content

Commit

Permalink
fix($animate): prevent leaving animate classes after animation is done
Browse files Browse the repository at this point in the history
In some cases ngAnimate transitional classes (like *-remove & *-remove-active) were left after animation was over. Change introduced in this commit prevent such situations.

Closes angular#4490
  • Loading branch information
jrencz committed Oct 23, 2013
1 parent 7491280 commit 154d07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngAnimate/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ angular.module('ngAnimate', ['ng'])
function animate(element, className, done) {

var cacheKey = getCacheKey(element);
if(getElementAnimationDetails(element, cacheKey, true).transitionDuration > 0) {
if(getElementAnimationDetails(element, cacheKey + ' ' + className, true).transitionDuration > 0) {

done();
return;
Expand Down

0 comments on commit 154d07e

Please sign in to comment.