Differences in deferred $.when...done() handling one or many results
I would expect this code to give the same answer twice - but it doesn't. Why?
$.when( $.getJSON("test.json") )
.done(function(p){
console.log(p);
});
$.when( $.getJSON("test.json"),$.getJSON("test.json") )
.done(function(p,q){
console.log(p);
});
I get
99
[99, "success", Object]