modifying $.when() behavior?

modifying $.when() behavior?

hey guys,

currently $.when() behaves similarly to

Q.spread()
https://github.com/kriskowal/q#combination

when/apply
https://github.com/cujojs/when/blob/master/docs/api.md#whenapply

that is...the results of multiple promises are passed to the done/fail/progress callbacks via .apply(this, resolvedValues). Most other .all() implementations (Q.all, when.all, RSVP.all) opt to do this via .call(this, resolvedValues), resuting in an single resolvedValues argument passed to the callback rather than as separate arguments for each item.

i'm writing a library where i'm trying to hook into any available promise/deferred libs and i cannot find a way to make $.when behave like the other libs. is there a way to force a .then() chained to a $.when() invoke the callbacks via .call() rather than .apply()?

thanks!
leon