Skip to content

Commit caef54a

Browse files
Update Graphics.js
1 parent 321aba1 commit caef54a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/gameobjects/graphics/Graphics.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -568,19 +568,19 @@ var Graphics = new Class({
568568
*/
569569
fillRoundedRect: function (x, y, width, height, radius)
570570
{
571-
if (typeof radius === 'number')
571+
if (typeof radius === 'number')
572572
{
573573
radius = {tl: radius, tr: radius, br: radius, bl: radius};
574-
}
575-
else if (typeof radius === 'object')
574+
}
575+
else if (typeof radius === 'object')
576576
{
577577
var defaultRadius = {tl: 0, tr: 0, br: 0, bl: 0};
578-
for (var side in defaultRadius)
578+
for (var side in defaultRadius)
579579
{
580580
radius[side] = radius[side] || defaultRadius[side];
581581
}
582582
}
583-
else
583+
else
584584
{
585585
radius = {tl: 20, tr: 20, br: 20, bl: 20};
586586
}
@@ -620,19 +620,19 @@ var Graphics = new Class({
620620
*/
621621
strokeRoundedRect: function (x, y, width, height, radius)
622622
{
623-
if (typeof radius === 'number')
623+
if (typeof radius === 'number')
624624
{
625625
radius = {tl: radius, tr: radius, br: radius, bl: radius};
626-
}
627-
else if (typeof radius === 'object')
626+
}
627+
else if (typeof radius === 'object')
628628
{
629629
var defaultRadius = {tl: 0, tr: 0, br: 0, bl: 0};
630-
for (var side in defaultRadius)
630+
for (var side in defaultRadius)
631631
{
632632
radius[side] = radius[side] || defaultRadius[side];
633633
}
634634
}
635-
else
635+
else
636636
{
637637
radius = {tl: 20, tr: 20, br: 20, bl: 20};
638638
}

0 commit comments

Comments
 (0)