From f4f1f43d5140385bbf070510975f72b65196e08a Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Wed, 26 Feb 2014 16:07:36 -0500 Subject: fix($animate): ensure all comment nodes are removed during a leave animation Closes #6403 --- src/ngAnimate/animate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); }); -- cgit v1.2.3