(function($,window){var xt_woofcAjaxQueue=$({});$.xt_woofcAjaxQueue=function(ajaxOpts){var jqXHR,dfd=$.Deferred(),promise=dfd.promise();function doRequest(next){jqXHR=$.ajax(ajaxOpts);jqXHR.done(dfd.resolve).fail(dfd.reject).then(next,next)}xt_woofcAjaxQueue.queue(doRequest);promise.abort=function(statusText){if(jqXHR){return jqXHR.abort(statusText)}var queue=xt_woofcAjaxQueue.queue(),index=$.inArray(doRequest,queue);if(index>-1){queue.splice(index,1)}dfd.rejectWith(ajaxOpts.context||ajaxOpts,[promise,statusText,""]);return promise};return promise};window.xt_woofcAjaxQueue=xt_woofcAjaxQueue})(jQuery,window);