Skip to content
Permalink
Browse files

Fix fix for #6481 introduced at 7862c45 which did not like it when Ar…

…ray.prototype was modified on empty arrays.
  • Loading branch information...
csnover committed Dec 23, 2010
1 parent 82ac384 commit 1f92edee207829a28de80ee72548cdbd599bcc79
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ajax.js
@@ -343,7 +343,9 @@ function buildParams( prefix, obj, traditional, add ) {
});

} else if ( !traditional && obj != null && typeof obj === "object" ) {
if ( jQuery.isEmptyObject( obj ) ) {
// If we see an array here, it is empty and should be treated as an empty
// object
if ( jQuery.isArray( obj ) || jQuery.isEmptyObject( obj ) ) {
add( prefix, "" );

// Serialize object item.

0 comments on commit 1f92ede

Please sign in to comment.
You can’t perform that action at this time.