Permalink
Browse files

Add a method to empty the queue. This does not touch any requests cur…

…rently in flight
  • Loading branch information...
1 parent d437b21 commit 140da1ae73b949b08accca807a898aaa56ae999f @bcooksey committed with Feb 22, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/jQuery.ajaxQueue.js
View
@@ -43,4 +43,8 @@ $.ajaxQueue = function( ajaxOpts ) {
return promise;
};
+$.ajaxQueue.clear = function() {
+ ajaxQueue.clearQueue();
+}
+
})(jQuery);

0 comments on commit 140da1a

Please sign in to comment.