Opened 4 years ago

Closed 4 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:2 Changed 4 years ago by dylan

Resolution: wontfix
Status: newclosed

Rejected due to change in behavior, as discussed in the pr.

Note: See TracTickets for help on using tickets.