-
Notifications
You must be signed in to change notification settings - Fork 65
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
Options #89
Comments
Would close #1. |
-1 to global options, that would mess with other libs, I think we can close #1, not very useful |
Ah, yeah. I see, but maybe the user is really interested in doing so because of reasons? Haha. The user would be left with two options: Carrying a temporary options object around and including it in every call or (the better way) building custom functions around qs. var myqs = {};
myqs.parse = function(str) { qs.parse(str, { /* ... */ }); }; Still, if you're in an environment where you need to change, let's say, the delimeter, this would most likely apply to all other libs accessing qs and you'd want them to use the same qs you do. Libs that really want to access the defaults, because they know what they're doing, could Still -1 on global options? Then we'll go along with the second parameter only and recommend custom functions in the docs. |
The text was updated successfully, but these errors were encountered: