Calling unlocked method only if locked property is set to true

This commit is contained in:
Pavle Goloskokovic 2018-01-17 18:09:33 +01:00
parent 31cd229bf2
commit 9ed999fada

View file

@ -108,7 +108,9 @@ var BaseSoundManager = new Class({
* @default false
*/
this.locked = false;
this.unlock();
if (this.locked) {
this.unlock();
}
},
/**
* Adds a new sound into the sound manager.