Merge pull request #1217 from spayton/dev

Fixes issue #1212 (again), this time properly built and tested
This commit is contained in:
Richard Davey 2014-10-05 11:56:14 +01:00
commit 498b564f05

View file

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