Setting locked property to value set in subclass if available

This commit is contained in:
Pavle Goloskokovic 2018-01-17 18:17:31 +01:00
parent 0f6f0ab45e
commit fdbda3cffa

View file

@ -105,9 +105,8 @@ var BaseSoundManager = new Class({
* *
* @readonly * @readonly
* @property {boolean} locked * @property {boolean} locked
* @default false
*/ */
this.locked = false; this.locked = this.locked || false;
/** /**
* Flag used internally for handling when the audio system * Flag used internally for handling when the audio system
* has been unlocked, if there ever was a need for it. * has been unlocked, if there ever was a need for it.