Bug Tracker

Modify

Ticket #9220 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

Animation Callbacks fire AFTER the next queue function executes.

Reported by: gnarf Owned by: timmywil
Priority: high Milestone: 1.6.2
Component: effects Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

 http://jsfiddle.net/gnarf/UHSwu/

Look at the following code:

$("<div>").queue(function(next) {
    console.log("test");
    next();
}).show(100, function() {
    console.log("show callback");
}).queue(function(next) {
    console.log("test");
    next();
});

I would expect the output to be "test" then "show callback" then "test" but it seems that the output is "test" "test" "show callback" which seems backwards to me.

This bug (?) seems present all the way back to 1.4.4.

Change History

comment:1 Changed 3 years ago by timmywil

  • Owner set to timmywil
  • Priority changed from undecided to high
  • Status changed from new to assigned
  • Component changed from unfiled to effects
  • Milestone changed from 1.next to 1.6.2

gnarf and I have a fix for this in 1.6.2.

comment:2 Changed 3 years ago by timmywil

  • Status changed from assigned to closed
  • Resolution set to fixed

Animation callbacks keep their place in the queue stack. Fixes #9220.

Changeset: 3486365062cdc7e8598cea238e67aafa33af7dce

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.