From 6be1406b8b6b37e372928dcf80591f036551b60d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 19:16:21 +0100 Subject: [PATCH] Renamed locked action name property to prop --- src/sound/html5/HTML5AudioSoundManager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index a6ca6eb28..497c661ff 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -107,11 +107,11 @@ var HTML5AudioSoundManager = new Class({ }; this.once('unlocked', function () { _this.lockedActionsQueue.forEach(function (lockedAction) { - if (lockedAction.sound[lockedAction.name].apply) { - lockedAction.sound[lockedAction.name].apply(lockedAction.sound, lockedAction.value || []); + if (lockedAction.sound[lockedAction.prop].apply) { + lockedAction.sound[lockedAction.prop].apply(lockedAction.sound, lockedAction.value || []); } else { - lockedAction.sound[lockedAction.name] = lockedAction.value; + lockedAction.sound[lockedAction.prop] = lockedAction.value; } }); _this.lockedActionsQueue.length = 0; @@ -138,11 +138,11 @@ var HTML5AudioSoundManager = new Class({ this.onBlurPausedSounds.length = 0; this.onBlurPausedSounds = null; }, - isLocked: function (sound, name, value) { + isLocked: function (sound, prop, value) { if (this.locked) { this.lockedActionsQueue.push({ sound: sound, - name: name, + prop: prop, value: value }); return true;