We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdf3844 commit f917c94Copy full SHA for f917c94
1 file changed
src/loader/filetypes/HTML5AudioFile.js
@@ -59,12 +59,16 @@ var HTML5AudioFile = new Class({
59
audio.oncanplaythrough = null;
60
audio.onerror = null;
61
62
- if(++this.filesLoaded === this.filesTotal)
+ this.filesLoaded++;
63
+
64
+ this.percentComplete = Math.min((this.filesLoaded / this.filesTotal), 1);
65
66
+ this.loader.emit('fileprogress', this, this.percentComplete);
67
68
+ if(this.filesLoaded === this.filesTotal)
69
{
70
this.onLoad();
71
}
-
- this.percentComplete = Math.min((this.filesLoaded / this.filesTotal), 1);
72
},
73
74
// Called by the Loader, starts the actual file downloading
0 commit comments