From 9b4930ea47b8257c105a7b88035a23984f7418e3 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 26 Jan 2018 15:23:06 +0100 Subject: [PATCH] Added play event docs --- src/sound/html5/HTML5AudioSound.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 93563999c..52b6f70d2 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -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; },