, Uncaught TypeError: Object [object Array] has no method 'done' . , ?
, . Promise Deferred, , $.when.apply(this, responseArray)
... , . [response, "success", response], AJAX, .
docs $.when, - promises (, $.ajax), . response, responseArray.length (letsSayTwo).
AJAX?
( ) arguments, map:
$.when.apply(this, responseArray).done(function() {
var responses = $.map(arguments, function(args) { return args[0]; }),
spit = someAnalysis(responses);
console.log(spit);
}).fail(function(jqXHR, textStatus, errorThrown) {
console.log('fail: '+textStatus);
});