forked from 0x2620/pandora
make 'true' true, too (in case of === or isBoolean)
This commit is contained in:
parent
4a26408955
commit
f56b1796ce
1 changed files with 3 additions and 3 deletions
|
@ -235,9 +235,9 @@ Ox.load('UI', {
|
||||||
vars.forEach(function(v) {
|
vars.forEach(function(v) {
|
||||||
v = v.split('=');
|
v = v.split('=');
|
||||||
query[v[0]] = decodeURIComponent(v[1]);
|
query[v[0]] = decodeURIComponent(v[1]);
|
||||||
if (query[v[0]] == 'false') {
|
query[v[0]] = {
|
||||||
query[v[0]] = false;
|
'true': true, 'false': false
|
||||||
}
|
}[query[v[0]]] || query[v[0]];
|
||||||
});
|
});
|
||||||
|
|
||||||
return Ox.extend({}, defaults, query);
|
return Ox.extend({}, defaults, query);
|
||||||
|
|
Loading…
Reference in a new issue