mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Renamed allTags to lockedTags
This commit is contained in:
parent
04c842f749
commit
43e3dc424e
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue