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.
This commit is contained in:
Behind The Math
2018-04-12 18:26:02 -04:00
parent 358b6f6836
commit 59bd0fb595
5 changed files with 19 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ var formAction = function(el, event) {
// jscs:disable disallowImplicitTypeConversion
if (!!element.name && element.attributes !== undefined && tagName !== "button") {
var type = element.attributes.type
// jscs:enable disallowImplicitTypeConversion
if ((!type || type.value !== "checkbox" && type.value !== "radio") || element.checked) {
// Build array of values to submit
var values = []