when calling resolveWith you have to pass the arguments as an array, so
- dfd.resolveWith(elem,{harry:'potter'});
becomes
- dfd.resolveWith(elem,[{harry:'potter'}, {volde: 'mort'}]);
and is accessible like this:
- $.when( turkey(elem) ).then( function(arg_0, arg_1) { alert(arg_0.harry + ' and '+arg_1.volde });