mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Defined rate property getter
This commit is contained in:
parent
eb5be4c75d
commit
3ff214da59
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue