Opened 6 years ago
Closed 6 years ago
#18368 closed enhancement (wontfix)
ioQuery.queryToObject(): if no string is passed use URL instead
Reported by: | Simon Speich | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Core | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
This fixes Line 70: FIXME: should we grab the URL string if we're not passed one?
var dec = decodeURIComponent, qp, ret = {}, name, val; str = str || window.location.search.slice(1); qp = str.split("&");
I hardly ever use queryToObject() without first getting the url. I think it would be very convenient to let queryToObject() do this for you as the FIXME suggests.
Pull request will be available in few minutes.
Change History (2)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Rejected due to change in behavior, as discussed in the pr.
Note: See
TracTickets for help on using
tickets.
@see https://github.com/dojo/dojo/pull/122