Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (40 sloc) 1.809 kb
<?xml version="1.0"?>
<entry type="method" name="jQuery.dequeue" return="undefined">
<title>jQuery.dequeue()</title>
<signature>
<added>1.3</added>
<argument name="element" type="Element">
<desc>A DOM element from which to remove and execute a queued function.</desc>
</argument>
<argument name="queueName" optional="true" type="String">
<desc>A string containing the name of the queue. Defaults to <code>fx</code>, the standard effects queue.</desc>
</argument>
</signature>
<desc>Execute the next function on the queue for the matched element.</desc>
<longdesc>
<p><strong>Note:</strong> This is a low-level method, you should probably use <code><a href="/dequeue">.dequeue()</a></code> instead.</p>
<p>When <code>jQuery.dequeue()</code> is called, the next function on the queue is removed from the queue, and then executed. This function should in turn (directly or indirectly) cause <code>jQuery.dequeue()</code> to be called, so that the sequence can continue.</p>
</longdesc>
<example>
<desc>Use jQuery.dequeue() to end a custom queue function which allows the queue to keep going.</desc>
<code><![CDATA[$("button").click(function () {
$("div").animate({left:'+=200px'}, 2000);
$("div").animate({top:'0px'}, 600);
$("div").queue(function () {
$(this).toggleClass("red");
$.dequeue( this );
});
$("div").animate({left:'10px', top:'30px'}, 700);
});]]></code>
<css><![CDATA[div {
margin:3px; width:50px; position:absolute;
height:50px; left:10px; top:30px;
background-color:yellow;
}
div.red { background-color:red; } ]]></css>
<html><![CDATA[<button>Start</button> <div></div>]]></html>
</example>
<category slug="data"/>
<category slug="utilities"/>
<category slug="version/1.3"/>
</entry>
Jump to Line
Something went wrong with that request. Please try again.