git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #7945. Make jQuery.param() serialize plain objects with a property named jquery...
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
4c3f1dd
..
1a19d0c
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-698,7
+698,7
@@
jQuery.extend({
}
// If an array was passed in, assume that it is an array of form elements.
}
// 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 );
// Serialize the form elements
jQuery.each( a, function() {
add( this.name, this.value );