Fix error in parsing of empty SVG array attributes.

This commit is contained in:
Jürg Lehni 2013-02-14 21:09:44 -08:00
parent 3aa0166d57
commit 741c0b7855

View file

@ -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;
}