Bug Tracker

Modify

Ticket #6054 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

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.

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.