Fixes #7945. Make jQuery.param() serialize plain objects with a property named jquery...
[jquery.git] / src / ajax.js
index 4c3f1dd..1a19d0c 100644 (file)
@@ -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 );