mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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(),
|
||||
start = new Point();
|
||||
|
||||
if (!parts) return;
|
||||
|
||||
function getCoord(index, coord) {
|
||||
var val = +coords[index];
|
||||
if (relative)
|
||||
|
|
Loading…
Reference in a new issue