Added play event docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:23:06 +01:00
parent 0a1e4abd9f
commit 9b4930ea47

View file

@ -81,6 +81,10 @@ var HTML5AudioSound = new Class({
if (!this.pickAndPlayAudioTag()) {
return false;
}
/**
* @event Phaser.Sound.HTML5AudioSound#play
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
*/
this.emit('play', this);
return true;
},