mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Setting audio tag name to contain index number, useful for debugging
This commit is contained in:
parent
9bb138f40d
commit
aa820b08ea
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ var HTML5AudioFile = new Class({
|
|||
for(var i = 0; i < instances; i++)
|
||||
{
|
||||
var audio = new Audio();
|
||||
audio.name = this.key;
|
||||
audio.name = this.key + ('0' + i).slice(-2); // Useful for debugging
|
||||
audio.dataset.used = 'false';
|
||||
audio.preload = 'auto';
|
||||
|
||||
|
|
Loading…
Reference in a new issue