make 'true' true, too (in case of === or isBoolean)

This commit is contained in:
rolux 2013-02-12 12:47:28 +05:30
parent 4a26408955
commit f56b1796ce

View file

@ -235,9 +235,9 @@ Ox.load('UI', {
vars.forEach(function(v) {
v = v.split('=');
query[v[0]] = decodeURIComponent(v[1]);
if (query[v[0]] == 'false') {
query[v[0]] = false;
}
query[v[0]] = {
'true': true, 'false': false
}[query[v[0]]] || query[v[0]];
});
return Ox.extend({}, defaults, query);