fix($animateCss): remove animation end event listeners on close
Previously the transition/animation end events were not removed when the animation was closed. This normally didn't matter, because the close function knows the animations are closed and won't do work twice. However, the listeners themselves do computation that could fail when the event was missing some data, for example when the event was triggered instead of natural. Closes #10387
M
Martin Staffa committed
20604e7fc4f69ecfafbd8d0c1fdc70d478075c3a
Parent: b7b06d8