var promises = [promise1, promise2, promise3... promiseN];
How can I use?
$.when(promise1(), promise2(), promise3(), ...promiseN()).then(function(){ doSomething()});
I rather pass the array... Any ideas how I can correctly do this? obviously this doesn't work.
$.when(promises).then(function(){ doSomething()});
oddly done, fail, always all accept arrays.
Thanks, ~ck