v2.3: Changes in `[resolve|reject]With`
As @fukamachi pointed out in #15, there were two problems with the resolveWith
and rejectWith
API that were deviant from jQuery:
- both methods now return the deferred they were called on to enable chaining.
- both now accept a context as the first argument and an array as the second. The elements of the array are passed as arguments to the callbacks. Earlier, any objects could be passed and they would be sent to the callback as an array.
Bumping to 2.3 because this will break existing code that relies on the faulty API.