mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 03:35:16 -05:00
Serialize: Handle arrays with null values
(cherry-picked from 3d7ce0a65f)
Closes gh-2436
This commit is contained in:
committed by
Michał Gołębiowski
parent
2da0cca7d3
commit
f0b86ec050
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user