Fixes #7945. Make jQuery.param() serialize plain objects with a property named jquery correctly.
This commit is contained in:
parent
fa4c90987f
commit
fdd4101fe9
2 changed files with 7 additions and 2 deletions
|
@ -698,7 +698,7 @@ jQuery.extend({
|
|||
}
|
||||
|
||||
// If an array was passed in, assume that it is an array of form elements.
|
||||
if ( jQuery.isArray( a ) || a.jquery ) {
|
||||
if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
|
||||
// Serialize the form elements
|
||||
jQuery.each( a, function() {
|
||||
add( this.name, this.value );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue