Skip to content

Commit 2167654

Browse files
Skipping unlocking logic if there are no locked tags
1 parent fa07dc7 commit 2167654

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ var HTML5AudioSoundManager = new Class({
203203
return true;
204204
});
205205

206+
if (lockedTags.length === 0)
207+
{
208+
return;
209+
}
210+
206211
var lastTag = lockedTags[lockedTags.length - 1];
207212

208213
lastTag.oncanplaythrough = function ()

0 commit comments

Comments
 (0)