mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Fixed "undefined" style bug causing crashes
This commit is contained in:
parent
99260d2174
commit
5d74999620
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ var TextStyle = new Class({
|
|||
// Callback & scope should be set without processing the values
|
||||
this[key] = GetValue(style, propertyMap[key][0], value);
|
||||
}
|
||||
else if (key === 'fontSize' && typeof style.fontSize === 'number')
|
||||
else if (style && key === 'fontSize' && typeof style.fontSize === 'number')
|
||||
{
|
||||
this[key] = style.fontSize.toString() + 'px';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue