mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix error in parsing of empty SVG array attributes.
This commit is contained in:
parent
3aa0166d57
commit
741c0b7855
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ new function() {
|
|||
: type === 'number'
|
||||
? Base.toFloat(value)
|
||||
: type === 'array'
|
||||
? value.split(/[\s,]+/g).map(parseFloat)
|
||||
? value ? value.split(/[\s,]+/g).map(parseFloat) : []
|
||||
: type === 'color' && getDefinition(value)
|
||||
|| value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue