mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
parent
8a625e0acd
commit
993a9df178
1 changed files with 1 additions and 3 deletions
|
@ -163,8 +163,6 @@ 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)
|
||||||
|
@ -182,7 +180,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
// First clear the previous content
|
// First clear the previous content
|
||||||
this.clear();
|
this.clear();
|
||||||
|
|
||||||
for (var i = 0, l = parts.length; i < l; i++) {
|
for (var i = 0, l = parts && parts.length; i < l; i++) {
|
||||||
var part = parts[i],
|
var part = parts[i],
|
||||||
command = part[0],
|
command = part[0],
|
||||||
lower = command.toLowerCase();
|
lower = command.toLowerCase();
|
||||||
|
|
Loading…
Reference in a new issue