mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
Prior to this fix $animate would maintain a count of each time a class was added and removed within $animate. With this fix, $animate instead only cares about the most recent addClass or removeClass operation and will only perform that operation (depending on what was last called). ``` // before addClass => +1 removeClass => 0 addClass => +1 addClass => +2 removeClass => +1 // this will cause an addClass animation // now addClass => add removeClass => remove addClass => add addClass => add removeClass => remove // this will cause a removeClass animation ``` Closes #8946 Closes #9458