Skip to content

Instantly share code, notes, and snippets.

Sébastien Van Eyck Akaryatrh

Block or report user

Report or block Akaryatrh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Akaryatrh / jQuery.ajaxQueue.min.js
Created Sep 22, 2011 — forked from gnarf/jQuery.ajaxQueue.min.js
jQuery.ajaxQueue - A queue for ajax requests
View jQuery.ajaxQueue.min.js
* jQuery.ajaxQueue - A queue for ajax requests
* (c) 2011 Corey Frang
* Dual licensed under the MIT and GPL licenses.
* Requires jQuery 1.5+
(function(a){var b=a({});a.ajaxQueue=function(c){function g(b){d=a.ajax(c).then(b,b).done(e.resolve).fail(e.reject)}var d,e=a.Deferred(),f=e.promise();b.queue(g),f.abort=function(h){if(d)return d.abort(h);var i=b.queue(),j=a.inArray(g,i);j>-1&&i.splice(j,1),e.rejectWith(c.context||c,[f,h,""]);return f};return f}})(jQuery)
You can’t perform that action at this time.