Added isLocked method to handle locked actions

This commit is contained in:
Pavle Goloskokovic 2018-01-17 19:10:24 +01:00
parent b25af58495
commit 913f388535

View file

@ -137,6 +137,17 @@ var HTML5AudioSoundManager = new Class({
BaseSoundManager.prototype.destroy.call(this);
this.onBlurPausedSounds.length = 0;
this.onBlurPausedSounds = null;
},
isLocked: function (sound, name, value) {
if (this.locked) {
this.lockedActionsQueue.push({
sound: sound,
name: name,
value: value
});
return true;
}
return false;
}
});
/**