Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode URI components for nested object keys #106

Merged
merged 1 commit into from
Sep 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion backbone.queryparams.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ _.extend(Backbone.Router.prototype, {
var parts = key.split('.');
var _data = data;
for (var i=0; i<parts.length; i++) {
var part = parts[i];
var part = decodeURIComponent(parts[i]);
if (i === parts.length-1) {
// set the value
_data[part] = this._decodeParamValue(value, _data[part]);
Expand Down
10 changes: 5 additions & 5 deletions backbone.queryparams.min.js

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