This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngAnimate doesn't cleanup correctly when on root Element #10527
Closed
Description
When you have something like
<body ng-app="myApp"></body>
and do
$animate.addClass(body, 'abc');
the ng-animate
class is not removed after the animation finishes. This is because cleanup has a special path if it's the root element: https://github.com/angular/angular.js/blob/master/src/ngAnimate/animate.js#L1512
(Simple) animations work anyway, so it looks like a minor thing - although the default path does a little more stuff.