diff options
author | Anton M <obhvsbypqghgc@gmail.com> | 2011-01-31 15:58:27 +0100 |
---|---|---|
committer | Anton M <obhvsbypqghgc@gmail.com> | 2011-01-31 15:58:27 +0100 |
commit | 389c099df686bd104ce0aab3361a94ebf3a05ce6 (patch) | |
tree | a4b41fb2c1b2ea3d8ea9d0a4ffe725cfff36893b /src | |
parent | 4e975430510f443ef76a90d077bc8956fb8b8cc0 (diff) | |
download | jquery-389c099df686bd104ce0aab3361a94ebf3a05ce6.tar.gz jquery-389c099df686bd104ce0aab3361a94ebf3a05ce6.zip |
Fixes #7568. Follow-up fix for #5862. Objects with a length property weren't serialized properly by jQuery.param.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ajax.js b/src/ajax.js index 363e9c851..4258b6744 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -736,9 +736,9 @@ function buildParams( prefix, obj, traditional, add ) { // Serialize object item. } else { - jQuery.each( obj, function( k, v ) { - buildParams( prefix + "[" + k + "]", v, traditional, add ); - }); + for ( var name in obj ) { + buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); + } } } else { |