We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_pjax
data
1 parent 4d3e868 commit 035cbbbCopy full SHA for 035cbbb
jquery.pjax.js
@@ -191,7 +191,11 @@ function pjax(options) {
191
// Without adding this secret parameter, some browsers will often
192
// confuse the two.
193
if (!options.data) options.data = {}
194
- options.data._pjax = context.selector
+ if ($.isArray(options.data)) {
195
+ options.data.push({name: '_pjax', value: context.selector})
196
+ } else {
197
+ options.data._pjax = context.selector
198
+ }
199
200
function fire(type, args, props) {
201
if (!props) props = {}
0 commit comments