Preventing finishedLoading from being called multiple times

This commit is contained in:
Pavle Goloskokovic 2018-01-08 17:38:56 +01:00
parent ed86d8a58d
commit 9035c5e14e

View file

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