[view/util][xs]: minor correction to parseQueryString function to handle empty query strings correctly.

This commit is contained in:
Rufus Pollock 2012-03-14 21:04:25 +00:00
parent 733a9d3275
commit 6d69ef64d9

View File

@ -276,6 +276,9 @@ my.parseHashUrl = function(hashUrl) {
// Parse a URL query string (?xyz=abc...) into a dictionary.
my.parseQueryString = function(q) {
if (!q) {
return {};
}
var urlParams = {},
e, d = function (s) {
return unescape(s.replace(/\+/g, " "));