diff options
author | sgiehl <stefan@piwik.org> | 2013-09-06 01:05:43 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-09-06 01:05:43 +0400 |
commit | 821c6601b4f7c363abc93a1b576476fcc5668954 (patch) | |
tree | 0bbb102a71e816f3f2ab5f290ed6cff03b5a98d0 /plugins/Zeitgeist | |
parent | 3c11c23f3e8dc1c088a07b941d719229d6e58197 (diff) |
fixed some js errors, namespaces & coding style
Diffstat (limited to 'plugins/Zeitgeist')
-rw-r--r-- | plugins/Zeitgeist/javascripts/piwikHelper.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Zeitgeist/javascripts/piwikHelper.js b/plugins/Zeitgeist/javascripts/piwikHelper.js index 1d3760a0c9..385984a72a 100644 --- a/plugins/Zeitgeist/javascripts/piwikHelper.js +++ b/plugins/Zeitgeist/javascripts/piwikHelper.js @@ -150,9 +150,7 @@ var piwikHelper = { if (newparams) { queryString = this.getQueryStringWithParametersModified(queryString, newparams); } - var value = String(window.location.pathname) + queryString; - - return value; + return String(window.location.pathname) + queryString; }, /** @@ -169,8 +167,7 @@ var piwikHelper = { var keyValue = vars[i].split("="); // Jquery will urlencode these, but we wish to keep the current raw value // use case: &segment=visitorId%3D%3Dabc... - var rawValue = decodeURIComponent(keyValue[1]); - params[keyValue[0]] = rawValue; + params[keyValue[0]] = decodeURIComponent(keyValue[1]); } return params; }, @@ -297,7 +294,7 @@ var piwikHelper = { * if the top of the element is not currently visible on screen * @param {string} elem Selector for the DOM node to scroll to, eg. '#myDiv' * @param {int} [time] Specifies the duration of the animation in ms - * @param {bool} [forceScroll] Whether to force scroll to an element. + * @param {boolean} [forceScroll] Whether to force scroll to an element. * @return {void} */ lazyScrollTo: function(elem, time, forceScroll) |