#10235 closed bug (duplicate)
Timers deletion race condition causes animations to stop
Reported by: | Owned by: | gnarf | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | effects | Version: | 1.6.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Change History (5)
comment:1 Changed 11 years ago by
Owner: | set to gnarf |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
Component: | unfiled → effects |
---|---|
Priority: | undecided → low |
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Confirmed - This behavior is already fixed in master http://jsfiddle.net/LE9eT/4/
Note: See
TracTickets for help on using
tickets.
This might possibly be a dupe of #6641