cowboy/jquery-bbq — Issue #34: deparam.querystring() returns abnormal results for URLs without a query string
Author: acdha
Created: 2011-10-11 19:44:54+00:00
State: open

Normally `$.deparam.querystring()` will return an object containing only the query string values. If called on a URL which does not contain ``?`` it will return an object containing the URL itself, e.g.

$.deparam.querystring("http://google.com/")
Object
http://google.com/: ""
__proto__: Object

This means that anyone intending to pass the result back into a function like $.param.querystring has to remember to include a check for this condition if the URL lacks a querystring altogether