Defined rate property getter

This commit is contained in:
Pavle Goloskokovic 2018-01-17 17:22:54 +01:00
parent eb5be4c75d
commit 3ff214da59

View file

@ -327,6 +327,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'volume', {
* @property {number} rate
*/
Object.defineProperty(HTML5AudioSound.prototype, 'rate', {
get: function () {
return Object.getOwnPropertyDescriptor(BaseSound.prototype, 'rate').get.call(this);
},
set: function (value) {
this.currentConfig.rate = value;
if (this.checkTouchLocked('property', 'rate', value)) {