Skip to content

Commit

Permalink
Merge pull request #72 from jeremyFreeAgent/feature/parseArray
Browse files Browse the repository at this point in the history
Added parsing of key[] URL Encoded for array structure
  • Loading branch information
jhudson8 committed Nov 15, 2013
2 parents ee3082d + 5621fa7 commit 9f684f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backbone.queryparams.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ _.extend(Backbone.Router.prototype, {
_setParamValue: function(key, value, data) {
// use '.' to define hash separators
key = key.replace('[]', '');
key = key.replace('%5B%5D', '');
var parts = key.split('.');
var _data = data;
for (var i=0; i<parts.length; i++) {
Expand Down

0 comments on commit 9f684f6

Please sign in to comment.