Ticket #10235 (closed bug: duplicate)
Timers deletion race condition causes animations to stop
|Reported by:||Aitor Guevara <aitorciki@…>||Owned by:||gnarf|
jQuery.fx.tick doesn't check if the timers array has been modified inside the timer step function. If a stop() has been registered in an animation callback, the timer will be deleted inside the step function, and tick will delete the wrong timer since the loop counter now points to the next one.
The problem is demonstrated at http://jsfiddle.net/aitorciki/LE9eT/ .
Pull request #495 fixes the problem and adds a test.
- Priority changed from undecided to low
- Component changed from unfiled to effects
- Status changed from assigned to closed
- Resolution set to duplicate