From 154d07ec8591e8077940ecdf0b3db856489b4513 Mon Sep 17 00:00:00 2001 From: Jarek Rencz Date: Wed, 23 Oct 2013 14:00:36 +0200 Subject: [PATCH] fix($animate): prevent leaving animate classes after animation is done 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 #4490 --- src/ngAnimate/animate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index 20b9101e0585..6d584bdaced8 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -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;