Opened 8 years ago

Closed 8 years ago

#8012 closed bug (notabug)

Unable to stop custom queue

Reported by: nicolechen Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.effects.core Version: 1.8.17
Keywords: Cc:
Blocked by: Blocking:

Description

$('#some-elem').mouseenter(function(e) {
  funcs = new Array();
  elem = $(this);
  funcs.push(function() {
    elem.delay(500); // queue name doesn't work here. Adding it will mean delay() has no effect.
    // class1 and class2 involve background-image, sprites.
    elem.switchClass('class1', 'class2', 1);
    elem.dequeue('custom-q'); // queue name works here. Misspelling it will stop queue.
  });
  $(this).queue('custom-q', funcs);
  $(this).dequeue('custom-q');
  $(this).stop('custom-q', true, true);
  // Queue does not stop. Omitting custom queue name from above stop() command WILL stop queue.
  // Is a custom queue popped into 'fx' queue upon dequeue?
});

$('#some-elem').mouseleave(function(e) {
  // Obviously, this doesn't work. Even in mouseenter, it didn't.
  $(this).stop('custom-q', true, true);
});

Change History (1)

comment:1 Changed 8 years ago by Scott González

Resolution: invalid
Status: newclosed

This doesn't sound like you're reporting a bug about about jQuery UI. If your bug is related to .queue(), use the jQuery core bug tracker.

Last edited 8 years ago by Scott González (previous) (diff)
Note: See TracTickets for help on using tickets.