Skip to main content

Bug Tracker

Side navigation

#13910 closed bug (notabug)

Opened May 18, 2013 11:09PM UTC

Closed May 19, 2013 03:55PM UTC

custom queue string for effects doesn't add effect to queue

Reported by: ben.fischer.810@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

According the documentation

As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string.

In jQuery 1.9.1 though my experience is that this feature doesn't work.

This code didn't add the fade-in effect to the queue

$(to_show).fadeIn(
 {
   queue: QUEUE_NAME,
   duration: 'slow',
   complete: function()
   {
     alert('hello');
     $(to_show).after(COLLAPSE_LINK_HTML);
     collapsify_dequeue(container)
    }
 }
);

When I removed the queue option the effect did get added to the fx queue. Other effect functions seem to have the same bug, except animate which does successfully handle a string passed to the queue option.

Attachments (0)
Change History (2)

Changed May 18, 2013 11:21PM UTC by ben.fischer.810@gmail.com comment:1

According the documentation As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string.

In jQuery 1.9.1 though my experience is that this feature doesn't work.

This code didn't add the fade-in effect to the queue

$(to_show).fadeIn(
 {
   queue: QUEUE_NAME,
   duration: 'slow',
   complete: function()
   {
     alert('hello');
     $(to_show).after(COLLAPSE_LINK_HTML);
     collapsify_dequeue(container)
    }
 }
);

Full code here http://jsfiddle.net/HYaJ9/

When I removed the queue option the effect did get added to the fx queue. Other effect functions seem to have the same bug, except animate which does successfully handle a string passed to the queue option.

Changed May 19, 2013 03:55PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

Clarified the docs to indicate you must manually start the queue. http://api.jquery.com/animate/