mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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) {
|
if (quote) {
|
||||||
// When checking for quote escaping, we also need to check that the
|
// When checking for quote escaping, we also need to check that the
|
||||||
// escape sign itself is not escaped, as otherwise '\\' would cause
|
// 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] === '\\'))
|
if (str[i] === quoteSign && (str[i - 1] !== '\\' || str[i - 2] === '\\'))
|
||||||
quote = false;
|
quote = false;
|
||||||
} else if (blockComment) {
|
} else if (blockComment) {
|
||||||
|
|
|
@ -349,7 +349,7 @@ new function() {
|
||||||
attrs[entry.attribute] = value == null
|
attrs[entry.attribute] = value == null
|
||||||
? 'none'
|
? 'none'
|
||||||
: entry.type === 'color'
|
: entry.type === 'color'
|
||||||
? value.toCss(false)
|
? value.toCss(false) // false for withAlpha, see above
|
||||||
: entry.type === 'array'
|
: entry.type === 'array'
|
||||||
? value.join(',')
|
? value.join(',')
|
||||||
: entry.type === 'number'
|
: entry.type === 'number'
|
||||||
|
|
Loading…
Reference in a new issue