Bug Tracker

Modify

Ticket #9475 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Extra callback fired when .stop() is called on a different element

Reported by: rtempchin@… Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description

Call .animate() on two different elements one after the other and give the second one a "complete" callback. In the callback function call .stop() on the first element, the one with no callback.

The callback function should only fire once (when the second element's animation completes) but instead it fires twice.

It only occurs when the animations are started in that order and stop() is called inside the callback.

Here's a jsFiddle of my reduced test case:  http://jsfiddle.net/rtempchin/FEY3h/4/

Maybe this is related to another .stop() bug I just filed: http://bugs.jquery.com/ticket/9474

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to fixed
  • Status changed from new to closed
  • Component changed from unfiled to effects
  • Version changed from 1.6.1 to 1.6

This works fine in the git version of jQuery.  http://jsfiddle.net/timmywil/FEY3h/5/

comment:2 in reply to: ↑ 1 Changed 2 years ago by anonymous

When I try to run your fiddle in Chrome it fails to load the framework.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.