Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-14 21:22:18 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-14 21:22:18 +0400
commitc432be13c0eb3dd6ddd8942cf0de5a7f43595c0c (patch)
treef61a2af621e6090ab77c11d9aa411f43f37771cf /js
parent5ec70a755fc2c4211678f37347298978a1677418 (diff)
Minor changes for JSLint 2009.06.12.
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/js/piwik.js b/js/piwik.js
index d5533912d4..ec80d3a3c2 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -21,7 +21,7 @@
*/
// Guard against loading the script twice
-var Piwik;
+var Piwik, piwik_log, piwik_track;
if (!this.Piwik) {
// Piwik singleton and namespace
Piwik = (function () {
@@ -979,15 +979,11 @@ if (!this.Piwik) {
* var piwik_install_tracker, piwik_tracker_pause, piwik_download_extensions, piwik_hosts_alias, piwik_ignore_classes;
*/
- /*
- * Track click manually (function is defined below)
- */
- var piwik_track;
/*
* Track page visit
*/
- function piwik_log(documentTitle, siteId, piwikUrl, customData) {
+ piwik_log = function (documentTitle, siteId, piwikUrl, customData) {
function getOption(optionName) {
try {
@@ -1016,7 +1012,9 @@ if (!this.Piwik) {
// default is to install the link tracker
if (getOption('install_tracker') !== false) {
- // set-up click handler
+ /*
+ * Track click manually (function is defined below)
+ */
piwik_track = function (sourceUrl, siteId, piwikUrl, linkType) {
piwikTracker.setSiteId(siteId);
piwikTracker.setTrackerUrl(piwikUrl);
@@ -1026,5 +1024,5 @@ if (!this.Piwik) {
// set-up link tracking
piwikTracker.enableLinkTracking();
}
- }
+ };
}