Skip to content

v2.3: Changes in `[resolve|reject]With`

Compare
Choose a tag to compare
@sudhirj sudhirj released this 04 Aug 13:51
· 30 commits to master since this release

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.