Side navigation
#12278 closed bug (fixed)
Opened August 13, 2012 11:40AM UTC
Closed August 20, 2012 01:53AM UTC
.promise(type) not working for non-default queue
Reported by: | creativecouple | Owned by: | gnarf |
---|---|---|---|
Priority: | high | Milestone: | 1.8.1 |
Component: | queue | Version: | 1.6.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
On http://jsfiddle.net/creativecouple/3Y63M/1/ I have an example with .promise(type).
There is one element animated (.delay) with the default queue 'fx' and the other one with another queue 'foo'.
As you can see .promise(type) don't wait for the non-default queue to finish, but it does for the default case.
Why?
This is the same for any jQuery version from 1.6.0 up to 1.8.0
Attachments (0)
Change History (7)
Changed August 13, 2012 03:39PM UTC by comment:1
component: | unfiled → deferred |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Changed August 13, 2012 03:51PM UTC by comment:2
Why is this not a bug?
Ok, minimal example:
$('span').animate{{left:'+=100px'},{queue:'myfx'}).dequeue('myfx');
$('span').promise('myfx') is now resolved. This is a bug!
$('span').promise('myfx') must resolve only after the animation finished.
But it is resolved immediately.
Changed August 13, 2012 04:37PM UTC by comment:3
resolution: | invalid |
---|---|
status: | closed → reopened |
It's actually a bug.
Changed August 13, 2012 04:38PM UTC by comment:4
component: | deferred → queue |
---|---|
owner: | → jaubourg |
priority: | low → high |
status: | reopened → assigned |
Changed August 13, 2012 05:40PM UTC by comment:5
owner: | jaubourg → gnarf |
---|
Changed August 13, 2012 06:03PM UTC by comment:6
milestone: | None → 1.8.1 |
---|---|
version: | 1.8.0 → 1.6.3 |
https://github.com/jquery/jquery/pull/893 should fix this - It requires editing some of our unit tests though, so we should take some care with it.
This is a forum question. If this is a bug or enhancement request, it needs to be fleshed out more.