Setting audio tag name to contain index number, useful for debugging

This commit is contained in:
Pavle Goloskokovic 2018-01-12 17:49:25 +01:00
parent 9bb138f40d
commit aa820b08ea

View file

@ -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';