mirror of
https://github.com/photonstorm/phaser
synced 2025-03-06 00:07:31 +00:00
audio tag does not support name attribute so setting that value to dataset
This commit is contained in:
parent
196018d04a
commit
5c118a3a94
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ var HTML5AudioFile = new Class({
|
|||
for(var i = 0; i < instances; i++)
|
||||
{
|
||||
var audio = new Audio();
|
||||
audio.name = this.key + ('0' + i).slice(-2); // Useful for debugging
|
||||
audio.dataset.name = this.key + ('0' + i).slice(-2); // Useful for debugging
|
||||
audio.dataset.used = 'false';
|
||||
|
||||
if (!touchLocked)
|
||||
|
|
Loading…
Add table
Reference in a new issue