mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Don't try to iterate a null array
Signed-off-by: TJ <hacker@iam.tj>
This commit is contained in:
parent
809c41b1cf
commit
d3af8483a8
1 changed files with 2 additions and 0 deletions
|
@ -163,6 +163,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
current = new Point(),
|
current = new Point(),
|
||||||
start = new Point();
|
start = new Point();
|
||||||
|
|
||||||
|
if (!parts) return;
|
||||||
|
|
||||||
function getCoord(index, coord) {
|
function getCoord(index, coord) {
|
||||||
var val = +coords[index];
|
var val = +coords[index];
|
||||||
if (relative)
|
if (relative)
|
||||||
|
|
Loading…
Reference in a new issue