Update Graphics.js

This commit is contained in:
TadejZupancic 2018-06-18 10:52:49 +02:00 committed by GitHub
parent caef54a34e
commit c1d0c11b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -574,11 +574,10 @@ var Graphics = new Class({
}
else if (typeof radius === 'object')
{
var defaultRadius = {tl: 0, tr: 0, br: 0, bl: 0};
for (var side in defaultRadius)
{
radius[side] = radius[side] || defaultRadius[side];
}
radius.tl = radius.tl || 0;
radius.tr = radius.tr || 0;
radius.br = radius.br || 0;
radius.bl = radius.bl || 0;
}
else
{
@ -626,11 +625,10 @@ var Graphics = new Class({
}
else if (typeof radius === 'object')
{
var defaultRadius = {tl: 0, tr: 0, br: 0, bl: 0};
for (var side in defaultRadius)
{
radius[side] = radius[side] || defaultRadius[side];
}
radius.tl = radius.tl || 0;
radius.tr = radius.tr || 0;
radius.br = radius.br || 0;
radius.bl = radius.bl || 0;
}
else
{