From 7945ebaec84baf6b7c1c0e2926d2c699730339fb Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 26 Jan 2018 15:05:14 +0100 Subject: [PATCH] Added stop event docs --- src/sound/webaudio/WebAudioSound.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sound/webaudio/WebAudioSound.js b/src/sound/webaudio/WebAudioSound.js index 32c4d21c4..5daabf345 100644 --- a/src/sound/webaudio/WebAudioSound.js +++ b/src/sound/webaudio/WebAudioSound.js @@ -198,6 +198,10 @@ var WebAudioSound = new Class({ } // \/\/\/ isPlaying = false, isPaused = false \/\/\/ this.stopAndRemoveBufferSource(); + /** + * @event Phaser.Sound.WebAudioSound#stop + * @param {Phaser.Sound.WebAudioSound} sound - Reference to the sound that emitted event. + */ this.emit('stop', this); return true; },