diff --git a/lib/CSSValueExpression.js b/lib/CSSValueExpression.js index 489f2e2..3a6881d 100644 --- a/lib/CSSValueExpression.js +++ b/lib/CSSValueExpression.js @@ -137,14 +137,14 @@ CSSOM.CSSValueExpression.prototype._parseJSComment = function(token, idx) { var nextChar = token.charAt(idx + 1), text; - if (nextChar == '/' || nextChar == '*') { + if (nextChar === '/' || nextChar === '*') { var startIdx = idx, endIdx, commentEndChar; - if (nextChar == '/') { // line comment + if (nextChar === '/') { // line comment commentEndChar = '\n'; - } else if (nextChar == '*') { // block comment + } else if (nextChar === '*') { // block comment commentEndChar = '*/'; }