Skip to content

Commit d45784f

Browse files
committed
Remove some unnecessary calls to closePath.
1 parent 859cc27 commit d45784f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/gameobjects/graphics/Graphics.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ var Graphics = new Class({
350350
{
351351
this.beginPath();
352352
this.arc(x, y, radius, 0, MATH_CONST.PI2);
353-
this.closePath();
354353
this.fillPath();
355354

356355
return this;
@@ -372,7 +371,6 @@ var Graphics = new Class({
372371
{
373372
this.beginPath();
374373
this.arc(x, y, radius, 0, MATH_CONST.PI2);
375-
this.closePath();
376374
this.strokePath();
377375

378376
return this;
@@ -454,25 +452,21 @@ var Graphics = new Class({
454452
this.moveTo(x, y);
455453
this.lineTo(x, y + height);
456454
this.strokePath();
457-
this.closePath();
458455

459456
this.beginPath();
460457
this.moveTo(x + width, y);
461458
this.lineTo(x + width, y + height);
462459
this.strokePath();
463-
this.closePath();
464460

465461
this.beginPath();
466462
this.moveTo(minx, y);
467463
this.lineTo(maxx + width, y);
468464
this.strokePath();
469-
this.closePath();
470465

471466
this.beginPath();
472467
this.moveTo(minx, y + height);
473468
this.lineTo(maxx + width, y + height);
474469
this.strokePath();
475-
this.closePath();
476470

477471
return this;
478472
},

0 commit comments

Comments
 (0)