mirror of
https://github.com/photonstorm/phaser
synced 2025-03-04 23:37:19 +00:00
Checks strings and numbers
This commit is contained in:
parent
d7611afaab
commit
c7dc7fc240
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ var Texture = new Class({
|
|||
|
||||
get: function (name)
|
||||
{
|
||||
if (name === undefined || name === null || typeof name !== 'string')
|
||||
if (name === undefined || name === null || (typeof name !== 'string' && typeof name !== 'number'))
|
||||
{
|
||||
name = (this.frameTotal === 1) ? '__BASE' : this.firstFrame;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue