We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca9aae commit 50bda89Copy full SHA for 50bda89
dom/animate/animate.js
@@ -162,10 +162,12 @@ steal('jquery', 'jquery/dom/styles').then(function ($) {
162
getAnimation = function(style) {
163
var lastSheet, name, last;
164
165
- // Look up the cached style, increment the age for any other animation
+ // Look up the cached style, set it to that name and reset age if found
166
+ // increment the age for any other animation
167
$.each(cache, function(i, animation) {
168
if(style === animation.style) {
169
name = animation.name;
170
+ animation.age = 0;
171
} else {
172
animation.age += 1;
173
}
0 commit comments