diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-06-14 21:15:26 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-06-14 21:15:26 +0400 |
commit | 5ec70a755fc2c4211678f37347298978a1677418 (patch) | |
tree | 7d1d24c7730db0ff2158bfbbad0343bd2293997d /js | |
parent | b376fb947e5beeac6674676ab693600d4f0f99f0 (diff) |
Replace outer try..catch with lighter (and shorter) if..then.
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/piwik.js b/js/piwik.js index ecdd25c78c..d5533912d4 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -22,9 +22,7 @@ // Guard against loading the script twice var Piwik; -try { - if (Piwik.getTracker) { } -} catch (e) { +if (!this.Piwik) { // Piwik singleton and namespace Piwik = (function () { /************************************************************ |