Set states FILE_LOADING and FILE_LOADED

This commit is contained in:
samme 2020-05-02 10:01:38 -07:00
parent d6e8600766
commit 9965c81c66

View file

@ -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);