From fdbda3cffa73441a9210bfaeb707fef8e8de1ea8 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 18:17:31 +0100 Subject: [PATCH] Setting locked property to value set in subclass if available --- src/sound/BaseSoundManager.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sound/BaseSoundManager.js b/src/sound/BaseSoundManager.js index 6dbfcf410..ab36167fd 100644 --- a/src/sound/BaseSoundManager.js +++ b/src/sound/BaseSoundManager.js @@ -105,9 +105,8 @@ var BaseSoundManager = new Class({ * * @readonly * @property {boolean} locked - * @default false */ - this.locked = false; + this.locked = this.locked || false; /** * Flag used internally for handling when the audio system * has been unlocked, if there ever was a need for it.