From 43e3dc424ecf8e1bf4765ac8ca58ddf3173f612d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sat, 14 Apr 2018 18:00:23 +0200 Subject: [PATCH] Renamed allTags to lockedTags --- src/sound/html5/HTML5AudioSoundManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index 7a06af5c8..8723e1f42 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -186,18 +186,18 @@ var HTML5AudioSoundManager = new Class({ document.body.removeEventListener('touchmove', detectMove); document.body.removeEventListener('touchend', unlock); - var allTags = []; + var lockedTags = []; _this.game.cache.audio.entries.each(function (key, tags) { for (var i = 0; i < tags.length; i++) { - allTags.push(tags[i]); + lockedTags.push(tags[i]); } return true; }); - var lastTag = allTags[allTags.length - 1]; + var lastTag = lockedTags[lockedTags.length - 1]; lastTag.oncanplaythrough = function () { @@ -205,7 +205,7 @@ var HTML5AudioSoundManager = new Class({ _this.unlocked = true; }; - allTags.forEach(function (tag) + lockedTags.forEach(function (tag) { tag.load(); });