diff options
author | Stefan Giehl <stefan@piwik.org> | 2016-07-20 04:07:35 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-07-20 04:07:35 +0300 |
commit | 023d80496bf3cc02a7f6141243e55e3fb262c647 (patch) | |
tree | b6caabc679ff88137c97254b9228ecc210e44227 /js | |
parent | dea6c1bdeee289c5ad65f0bd657dc0f4868beaa8 (diff) |
fixes #10310 - use indexOf polyfill function to avoid errors in older IEs (#10327)
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js index db331f7150..5d847d5ba8 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -3929,7 +3929,7 @@ if (typeof window.Piwik !== 'object') { // custom dimensions for (i in customDimensions) { if (Object.prototype.hasOwnProperty.call(customDimensions, i)) { - var isNotSetYet = (-1 === customDimensionIdsAlreadyHandled.indexOf(i)); + var isNotSetYet = (-1 === indexOfArray(customDimensionIdsAlreadyHandled, i)); if (isNotSetYet) { request += '&dimension' + i + '=' + customDimensions[i]; } |