Fix error for missing audio tag (already released)

This commit is contained in:
samme 2020-05-21 16:40:50 -07:00
parent d6e8600766
commit 36f08e75b8

View file

@ -382,11 +382,15 @@ var HTML5AudioSound = new Class({
*/
stopAndReleaseAudioTag: function ()
{
this.audio.pause();
this.audio.dataset.used = 'false';
this.audio = null;
this.startTime = 0;
this.previousTime = 0;
if (this.audio)
{
this.audio.pause();
this.audio.dataset.used = 'false';
this.audio = null;
}
},
/**