diff options
author | Anton Kovalyov <anton@kovalyov.net> | 2011-02-02 00:32:29 +0100 |
---|---|---|
committer | Anton M <obhvsbypqghgc@gmail.com> | 2011-02-02 00:32:29 +0100 |
commit | fdd4101fe93321f33b916a92b5def1328ea331b3 (patch) | |
tree | b902be8825e5db9606e9a1436711f12cc53a2225 /src/ajax.js | |
parent | fa4c90987fc9aede4de3f41976cda91acad81736 (diff) | |
download | jquery-fdd4101fe93321f33b916a92b5def1328ea331b3.tar.gz jquery-fdd4101fe93321f33b916a92b5def1328ea331b3.zip |
Fixes #7945. Make jQuery.param() serialize plain objects with a property named jquery correctly.
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 4c3f1dd53..1a19d0ca1 100644 --- 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 ( 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 ); |