It turns out, error-checking with fail
method is a very nice idea with jQuery async calls.
So, reworking my deferred like this:
$.when(typeList, typeData)
.done(function(list, data) {
console.log("we're done");
//do something
}).fail(function(list, data){
console.log("Houston, we have a problem!");
});
Saved me a lot of trouble, and provided me with some error-handling to boot. Since we receive statusText
as a parameter to our callback functions it is quite easy to get what's wrong.