audio tag does not support name attribute so setting that value to dataset

This commit is contained in:
Pavle Goloskokovic 2018-01-17 14:10:03 +01:00
parent 196018d04a
commit 5c118a3a94

View file

@ -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)