diff options
author | Dan Dascalescu <ddascalescu+github@gmail.com> | 2015-07-20 12:45:36 +0300 |
---|---|---|
committer | Dan Dascalescu <ddascalescu+github@gmail.com> | 2015-07-20 12:45:36 +0300 |
commit | 7572d21930adc304d2cbd8924149e1f07f56ad92 (patch) | |
tree | d147f7a349accd318f7524790cb393d3c7d354b3 /js/piwik.js | |
parent | 3a6b41361fea33023c1c22f2f719afbd0f45a618 (diff) |
Forgot to quote "className"
Diffstat (limited to 'js/piwik.js')
-rw-r--r-- | js/piwik.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/piwik.js b/js/piwik.js index 449b1ed7c6..1903ab216e 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -1386,8 +1386,8 @@ if (typeof Piwik !== 'object') { }, hasNodeCssClass: function (node, className) { - if (node && className && className in node && node.className) { - var classes = typeof node.className === "string" ? node.className.split(' ') : []; + if (node && className && 'className' in node && node.className) { + var classes = node.className.split(' '); if (-1 !== indexOfArray(classes, className)) { return true; } |