mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Preventing finishedLoading from being called multiple times
This commit is contained in:
parent
ed86d8a58d
commit
9035c5e14e
1 changed files with 5 additions and 0 deletions
|
@ -194,6 +194,11 @@ var BaseLoader = new Class({
|
|||
{
|
||||
// console.log('---> BaseLoader.finishedLoading PROCESSING', this.queue.size, 'files');
|
||||
|
||||
if(this.state === CONST.LOADER_PROCESSING)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.state = CONST.LOADER_PROCESSING;
|
||||
|
||||
this.storage.clear();
|
||||
|
|
Loading…
Reference in a new issue