Fix some comments.

This commit is contained in:
Jürg Lehni 2012-12-01 13:27:55 -08:00
parent 9727874aa2
commit cdfd1f596a
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ function stripComments(str) {
if (quote) {
// When checking for quote escaping, we also need to check that the
// escape sign itself is not escaped, as otherwise '\\' would cause
// the wrong impression of and endlessly open string:
// the wrong impression of an unclosed string:
if (str[i] === quoteSign && (str[i - 1] !== '\\' || str[i - 2] === '\\'))
quote = false;
} else if (blockComment) {

View file

@ -349,7 +349,7 @@ new function() {
attrs[entry.attribute] = value == null
? 'none'
: entry.type === 'color'
? value.toCss(false)
? value.toCss(false) // false for withAlpha, see above
: entry.type === 'array'
? value.join(',')
: entry.type === 'number'