mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Merge pull request #627 from iam-TJ/issue_626
Issue 626: Don't try to iterate a null array
This commit is contained in:
commit
8a625e0acd
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