diff --git a/src/polygon.class.js b/src/polygon.class.js index d1c1e3a0..a78f7e8f 100644 --- a/src/polygon.class.js +++ b/src/polygon.class.js @@ -138,7 +138,7 @@ ctx.beginPath(); for (var i = 0, len = this.points.length; i < len; i++) { - p1 = this.points[i], + p1 = this.points[i]; p2 = this.points[i+1] || this.points[0]; fabric.util.drawDashedLine(ctx, p1.x, p1.y, p2.x, p2.y, this.strokeDashArray); } diff --git a/src/polyline.class.js b/src/polyline.class.js index f9f3a339..f3c6e4f2 100644 --- a/src/polyline.class.js +++ b/src/polyline.class.js @@ -110,7 +110,7 @@ ctx.beginPath(); for (var i = 0, len = this.points.length; i < len; i++) { - p1 = this.points[i], + p1 = this.points[i]; p2 = this.points[i+1] || p1; fabric.util.drawDashedLine(ctx, p1.x, p1.y, p2.x, p2.y, this.strokeDashArray); }