Skip to content

Commit

Permalink
handled nested array, fixed macek#45
Browse files Browse the repository at this point in the history
  • Loading branch information
layerssss committed Nov 27, 2014
1 parent 846fa80 commit df6c8d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.serialize-object.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jquery.serialize-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
while ((k = keys.pop()) !== undefined) {
// foo[]
if (patterns.push.test(k)) {
var idx = incrementPush(root.replace(/\[\]$/, ''));
var idx = incrementPush(keys.join('.'));
value = build([], idx, value);
}

Expand Down

0 comments on commit df6c8d5

Please sign in to comment.