I am passing an arbitrary amount of deferred get requests to $.when.apply(this, ajax_calls).done(function() {});
but I do not know how to access the arguments usually passed to the callback of each ajax_call.
I want to access the results of each ajax call in the .done()
function, maybe in the form:
$.when.apply(this, ajax_calls).done(function(resultArray) {
resultArray.forEach( function(s) {
console.log(s)
}
});
or something similar.
Is this possible?