SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 184 JavaScript

fix(ngAnimate): fire callbacks when document is hidden

Since commit a3a7afd3aa70d981b0210088df53fa2cf68d3a3d, animations are not run
when the document is hidden (only their structural or class change effects are executed).
However, some libraries rely on the $animate.on() callbacks to be called even when no actual animation
runs.
This commit restores the behavior for the ngAnimate.$animate functions.
Note that callbacks still won't be called if animations are disabled, because this would be be a potential
breaking change, as some applications might rely on this implementation.

Fixes #14120
M
Martin Staffa committed
c4bff290e5009e8ae5aa93839ad80a677a9e878f
Parent: 55b0014