Add ability to clear the queue #8

wants to merge 2 commits into
Jump to file or symbol
Failed to load files and symbols.
+8 −0
@@ -25,9 +25,13 @@ This pluging creates a new method which ensures only one AJAX request is running
### `jQuery.ajaxQueue( options )`
Takes the same options as [jQuery.ajax](, and returns a promise. The return value is not a `jqXHR`, but it will behave like one. The `abort()` method on the returned object will remove the request from the queue if it has not begun, or pass it along to the jqXHR's abort method once the request begins.
+### `jQuery.ajaxQueue.clear()`
+This wil empty the queue. NB: `abort()` is _not_ called on the individual requests in the queue.
## Examples
_(Coming soon)_
## Release History
* v0.1.1 - 2013-01-16
@@ -43,4 +43,8 @@ $.ajaxQueue = function( ajaxOpts ) {
return promise;
+$.ajaxQueue.clear = function() {
+ ajaxQueue.clearQueue();