X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=3c199af95ba7b49d00317d2f4d269194557ba081;hb=05aaa3395723bbb48906ee8a99464a2c4e1e4193;hp=3ef2d4f1e675405bff17c97623708655710d6365;hpb=23492fdf9fa6f2c3b8ee85d062fed74297f3c438;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 3ef2d4f..3c199af 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -665,7 +665,7 @@ jQuery.extend({ } }); - } else if ( !traditional && typeof obj === "object" ) { + } else if ( !traditional && obj != null && typeof obj === "object" ) { // Serialize object item. jQuery.each( obj, function( k, v ) { buildParams( prefix + "[" + k + "]", v );