When you chain on a .then it will take two arguments. The first is for a function for the success scenario and the second is for a function for the failing scenario. In contrast, .done just takes the success scenario argument and .fail just takes the failing scenario argument.
No comments:
Post a Comment