mirror of
https://github.com/photonstorm/phaser
synced 2024-12-01 00:49:41 +00:00
Set states FILE_LOADING and FILE_LOADED
This commit is contained in:
parent
d6e8600766
commit
9965c81c66
1 changed files with 4 additions and 0 deletions
|
@ -272,6 +272,8 @@ var File = new Class({
|
|||
}
|
||||
else
|
||||
{
|
||||
this.state = CONST.FILE_LOADING;
|
||||
|
||||
this.src = GetURL(this, this.loader.baseURL);
|
||||
|
||||
if (this.src.indexOf('data:') === 0)
|
||||
|
@ -313,6 +315,8 @@ var File = new Class({
|
|||
success = false;
|
||||
}
|
||||
|
||||
this.state = CONST.FILE_LOADED;
|
||||
|
||||
this.resetXHR();
|
||||
|
||||
this.loader.nextFile(this, success);
|
||||
|
|
Loading…
Reference in a new issue