Skip to main content

Bug Tracker

Side navigation

#9220 closed bug (fixed)

Opened May 10, 2011 09:12PM UTC

Closed May 13, 2011 03:58PM UTC

Last modified March 08, 2012 04:13PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed May 11, 2011 06:29PM UTC by timmywil comment:1

component: unfiledeffects
milestone: 1.next1.6.2
owner: → timmywil
priority: undecidedhigh
status: newassigned

gnarf and I have a fix for this in 1.6.2.

Changed May 13, 2011 03:58PM UTC by timmywil comment:2

resolution: → fixed
status: assignedclosed

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

Changeset: 3486365062cdc7e8598cea238e67aafa33af7dce