mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Emitting loop event when sound loop setting value changes
This commit is contained in:
parent
8f692b8fb9
commit
846aefd7c1
1 changed files with 1 additions and 0 deletions
|
@ -327,6 +327,7 @@ Object.defineProperty(HTML5AudioSound.prototype, 'loop', {
|
|||
if (this.audio) {
|
||||
this.audio.loop = value;
|
||||
}
|
||||
this.emit('loop', this, value);
|
||||
}
|
||||
});
|
||||
module.exports = HTML5AudioSound;
|
||||
|
|
Loading…
Reference in a new issue