Modify ↓
Ticket #10235 (closed bug: duplicate)
Timers deletion race condition causes animations to stop
| Reported by: | Aitor Guevara <aitorciki@…> | Owned by: | gnarf |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | effects | Version: | 1.6.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:2 Changed 20 months ago by rwaldron
- Priority changed from undecided to low
- Component changed from unfiled to effects
comment:4 Changed 20 months ago by gnarf
- Status changed from assigned to closed
- Resolution set to duplicate
Confirmed - This behavior is already fixed in master http://jsfiddle.net/LE9eT/4/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
