From f56b1796ce84b8d75715321808007901c5559399 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 12:47:28 +0530 Subject: [PATCH] make 'true' true, too (in case of === or isBoolean) --- static/js/embed/pandora.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index 4f0f99da2..0973b3798 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -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);