The following code should be straightforward
//Generic success routine, let the developer know, store the results
function genericSuccess( _data , textStatus , jqXHR )
{
data[this.url] = _data;
}
jQuery.when( $.ajax({ url: metaKey, success: genericSuccess }) ,
$.ajax({ url: docsKey, success: genericSuccess }) ).then( console.log( "Then!" ) );
But console.log('Then')
keeps triggering first. Why ? This does not work with 1.7.2 and 1.8.3