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

This commit is contained in:
Pavle Goloskokovic 2018-01-17 19:14:33 +01:00
parent 94d7fb7d4f
commit 99c9b786c8

View file

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