Handle XHR response error #137
Reference in New Issue
Block a user
Delete Branch "feature/handle-response-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #123.
This needs to be
tempOptions = clone(this.options), or you'll mutate the current instance's optionsThis also needs to clone
this.options, but you could probably just do this once at the top of the method rather than repeating the assignment of the request to your temporary event options.Good point.
Good point.
It's all looking good to me now, do you want to add some tests for
handle-response?Yes, please. You're better at that than I am.
I don't have much time to do that at present, unfortunately, so you can either have a go yourself or, as
handle-responseis largely a direct transplant fromindex.jsand as most of the remainder of that file is untested as well, we could park adding tests for this until #21 if you want to get this merged soon.Thanks for adding tests, I'll try and find some time to review them shortly.
Took a look at the tests this morning, all seems good to merge to me!