Skip to content

Commit 8091f09

Browse files
committed
Don't set OutlineStyle if undefined
1 parent 706d028 commit 8091f09

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/gameobjects/shape/grid/Grid.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ var Grid = new Class({
152152
this.setSize(width, height);
153153

154154
this.setFillStyle(fillColor, fillAlpha);
155-
this.setOutlineStyle(outlineFillColor, outlineFillAlpha);
155+
156+
if (outlineFillColor !== undefined)
157+
{
158+
this.setOutlineStyle(outlineFillColor, outlineFillAlpha);
159+
}
156160

157161
this.updateDisplayOrigin();
158162
},

0 commit comments

Comments
 (0)