mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Merge pull request #1217 from spayton/dev
Fixes issue #1212 (again), this time properly built and tested
This commit is contained in:
commit
498b564f05
1 changed files with 1 additions and 1 deletions
|
@ -1257,7 +1257,7 @@ Phaser.Loader.prototype = {
|
|||
};
|
||||
file.data.preload = 'auto';
|
||||
file.data.src = this.baseURL + file.url;
|
||||
file.data.addEventListener('canplaythrough', Phaser.GAMES[this.game.id].load.fileComplete(this._fileIndex), false);
|
||||
file.data.addEventListener('canplaythrough', function () { Phaser.GAMES[_this.game.id].load.fileComplete(_this._fileIndex); }, false);
|
||||
file.data.load();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue