Skip to content

Commit d664a7d

Browse files
Marking all locked audio tags as unlocked after loading finishes
1 parent 5efa219 commit d664a7d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ var HTML5AudioSoundManager = new Class({
208208
lastTag.oncanplaythrough = function ()
209209
{
210210
lastTag.oncanplaythrough = null;
211+
212+
lockedTags.forEach(function (tag)
213+
{
214+
tag.dataset.locked = 'false';
215+
});
216+
211217
_this.unlocked = true;
212218
};
213219

0 commit comments

Comments
 (0)