Simplify fix for #626 a bit.

Closes #626.
This commit is contained in:
Jürg Lehni 2015-02-28 19:20:48 +01:00
parent 8a625e0acd
commit 993a9df178

View file

@ -163,8 +163,6 @@ 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)
@ -182,7 +180,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
// First clear the previous content
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],
command = part[0],
lower = command.toLowerCase();