aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngAnimate/animate.js
diff options
context:
space:
mode:
authorMatias Niemelä2014-02-26 16:07:36 -0500
committerMatias Niemelä2014-02-26 17:17:41 -0500
commitf4f1f43d5140385bbf070510975f72b65196e08a (patch)
treea9f52b993472d070616a245fcd729610291d3c29 /src/ngAnimate/animate.js
parent73daa79e911260fc177727238c3e780e8043244e (diff)
downloadangular.js-f4f1f43d5140385bbf070510975f72b65196e08a.tar.bz2
fix($animate): ensure all comment nodes are removed during a leave animation
Closes #6403
Diffstat (limited to 'src/ngAnimate/animate.js')
-rw-r--r--src/ngAnimate/animate.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js
index 4b35d5fd..959dd55b 100644
--- a/src/ngAnimate/animate.js
+++ b/src/ngAnimate/animate.js
@@ -436,8 +436,7 @@ angular.module('ngAnimate', ['ng'])
cancelChildAnimations(element);
this.enabled(false, element);
$rootScope.$$postDigest(function() {
- element = stripCommentsFromElement(element);
- performAnimation('leave', 'ng-leave', element, null, null, function() {
+ performAnimation('leave', 'ng-leave', stripCommentsFromElement(element), null, null, function() {
$delegate.leave(element);
}, doneCallback);
});