X-Git-Url: http://git.asbjorn.it/?p=jquery.git;a=blobdiff_plain;f=src%2Fajax.js;h=1a19d0ca16077086f9ad86e59afb5fdaf9f8706b;hp=4c3f1dd53429fb3ef1eeab09a34f7fce00348374;hb=fdd4101fe93321f33b916a92b5def1328ea331b3;hpb=fa4c90987fc9aede4de3f41976cda91acad81736 diff --git a/src/ajax.js b/src/ajax.js index 4c3f1dd..1a19d0c 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 );