Only call _renderStroke in line and circle when this.stroke exists

This commit is contained in:
kangax 2014-01-17 11:57:54 -05:00
parent 20e0712688
commit bc8acac692
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@
ctx.closePath();
this._renderFill(ctx);
this._renderStroke(ctx);
this.stroke && this._renderStroke(ctx);
},
/**

View file

@ -117,7 +117,7 @@
// (by copying fillStyle to strokeStyle, since line is stroked, not filled)
var origStrokeStyle = ctx.strokeStyle;
ctx.strokeStyle = this.stroke || ctx.fillStyle;
this._renderStroke(ctx);
this.stroke && this._renderStroke(ctx);
ctx.strokeStyle = origStrokeStyle;
},