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-12-26 03:03:12 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-26 03:03:12 +0300
commit80a976a2b7fef3fc0245609b656f756013a4b3a0 (patch)
treeeb76b19f733373cea6ffe03cdab0bf3ca0f515c5 /js
parente8301d62531233f7ac522448632063823290b55f (diff)
Some older browsers don't handle class names with underscore, so, accept piwik-ignore (et al) in addition to piwik_ignore (et al).
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 9a782471b0..e2e9af3a06 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -589,7 +589,7 @@ if (!this.Piwik) {
* Construct regular expression of classes
*/
function getClassesRegExp(configClasses, defaultClass) {
- var i, classesRegExp = '(^| )(piwik_' + defaultClass;
+ var i, classesRegExp = '(^| )(piwik[_-]' + defaultClass;
if (isDefined(configClasses)) {
for (i = 0; i < configClasses.length; i++) {