mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Skipping unlocking logic if there are no locked tags
This commit is contained in:
parent
fa07dc76e9
commit
2167654009
1 changed files with 5 additions and 0 deletions
|
@ -203,6 +203,11 @@ var HTML5AudioSoundManager = new Class({
|
|||
return true;
|
||||
});
|
||||
|
||||
if (lockedTags.length === 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var lastTag = lockedTags[lockedTags.length - 1];
|
||||
|
||||
lastTag.oncanplaythrough = function ()
|
||||
|
|
Loading…
Reference in a new issue