Ticket #6641 (closed bug: fixed)
Calling stop() within animation finished callback causes other animations to freeze
|Reported by:||camtarn||Owned by:||timmywil|
|Keywords:||animation, stop, freeze||Cc:|
The jQuery.fx tick() function removes an animation's timer from the timer list when the animation stops. However, if there is a call to stop() on the animated element within the animation's callback function, the call to stop() will remove the timer from the list and the tick() function will cause the next timer in the list to be removed instead, causing another animation on the page to freeze.
This could be solved either by documenting that stop() should not be called on the animation that fired the callback (after all, the animation is already stopped so the stop() call should not do anything), or by having tick() check that the animation which stopped is still in the queue before removing it.
I've attached a minimal test case for the bug, and a patch for tick().
Bug #4849 may be partially related to this bug.
- Priority set to low
- Status changed from new to open
- Version changed from 1.4.2 to 1.4.4
- Blocked by 4849 added
- Version changed from 1.4.4 to 1.6b1
- Milestone set to 1.next
- Status changed from assigned to closed
- Resolution set to fixed
comment:12 Changed 21 months ago by timmywil
- Status changed from closed to reopened
- Resolution fixed deleted
- Blocked by 4849 removed