mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Fix error for missing audio tag (already released)
This commit is contained in:
parent
d6e8600766
commit
36f08e75b8
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue