Commit Graph

3 Commits

Author SHA1 Message Date
Behind The Math
e35b831228 Always clone the options object so we don't mutate the original 2018-04-25 21:15:59 -04:00
Behind The Math
59bd0fb595 Use the same options object in handle-response as in send-request
Instead of cloning this.options again in handle-response.js, pass
the options object from send-request.js. This way,
pjax.state.options will also have the request options.
2018-04-12 18:26:02 -04:00
BehindTheMath
2166866967 Handle XHR response error (#137)
* Move the XHR callback to a separate file
* Trigger an error event if the response cannot be parsed.
* Add tests for handle-response.js
2018-03-15 16:12:32 -04:00