mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix some comments.
This commit is contained in:
parent
9727874aa2
commit
cdfd1f596a
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue