Using manager.isLocked instead of removed checkTouchLocked method for detune property

This commit is contained in:
Pavle Goloskokovic 2018-01-17 19:14:43 +01:00
parent 99c9b786c8
commit 216bde9577

View file

@ -322,7 +322,7 @@ Object.defineProperty(HTML5AudioSound.prototype, 'detune', {
},
set: function (value) {
this.currentConfig.detune = value;
if (this.checkTouchLocked('property', 'detune', value)) {
if (this.manager.isLocked(this, 'detune', value)) {
return;
}
Object.getOwnPropertyDescriptor(BaseSound.prototype, 'detune').set.call(this, value);