Modify ↓
Ticket #6054 (closed bug: worksforme)
delay() with a queueName is not working
| Reported by: | HMax | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.1 | |
| Component: | effects | Version: | 1.4.1 |
| Keywords: | delay queuename | Cc: | |
| Blocking: | Blocked by: |
Description
There seems to be a problem with the delay() function when specifying the queueName as 2nd parameter.
Here is the jQuery sample code that is working : $('#subMenu').delay(2000).slideUp('fast');
And here is the one that is NOT working (delay does not occur, animation starts right away) :
$('#subMenu').delay(2000,'myQueue').slideUp('fast');
I found out about this when trying to have a named queue, that I wanted to clear to prevent animation from running.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

That's the correct behavior. If you specify a queue name it won't delay the animation queue (named 'fx'). If you were to do:
.delay(2000,'myQueue').queue('myQueue', function(){})then the function would fire after 2000ms.