From cf2b9134f5582e516f91a7007f5d3a46e09bf542 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 4 Mar 2013 15:24:20 +0000 Subject: [PATCH] fix URL controller --- static/js/pandora/URL.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index c2970a0ef..2133daaaa 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -369,7 +369,9 @@ pandora.URL = (function() { // on page load, this sets the state from the URL // can also be used to parse a URL that.parse = function(url, callback) { - if (arguments.length == 1) { + if (arguments.length == 2) { + self.URL.parse(url, callback); + } else { callback = arguments[0]; url = null; if (document.location.pathname.slice(0, 4) == 'url=') { @@ -380,8 +382,6 @@ pandora.URL = (function() { setState(state, callback); }); } - } else { - self.URL.parse(url, callback); } return that; };