Skip to content

Commit 9b4930e

Browse files
Added play event docs
1 parent 0a1e4ab commit 9b4930e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ var HTML5AudioSound = new Class({
8181
if (!this.pickAndPlayAudioTag()) {
8282
return false;
8383
}
84+
/**
85+
* @event Phaser.Sound.HTML5AudioSound#play
86+
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
87+
*/
8488
this.emit('play', this);
8589
return true;
8690
},

0 commit comments

Comments
 (0)