mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
fix($animate): ensure all comment nodes are removed during a leave animation
Closes #6403
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user