Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13910 closed bug (notabug)

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

Reported by: ben.fischer.810@… 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.

Change History (2)

comment:1 Changed 7 years ago by ben.fischer.810@…

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.

comment:2 Changed 7 years ago by dmethvin

Resolution: notabug
Status: newclosed

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

Note: See TracTickets for help on using tickets.