Serialize: Handle arrays with null values

(cherry-picked from 3d7ce0a65f)

Closes gh-2436
This commit is contained in:
Daniel Nill
2015-08-06 19:49:14 -07:00
committed by Michał Gołębiowski
parent 2da0cca7d3
commit f0b86ec050
2 changed files with 5 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ function buildParams( prefix, obj, traditional, add ) {
// Item is non-scalar (array or object), encode its numeric index.
buildParams(
prefix + "[" + ( typeof v === "object" ? i : "" ) + "]",
prefix + "[" + ( jQuery.type( v ) === "object" ? i : "" ) + "]",
v,
traditional,
add