Added stop method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-06 15:53:23 +01:00
parent 2effb504be
commit 1f1aebdaf1

View file

@ -308,6 +308,12 @@ var BaseSound = new Class({
this.isPaused = false;
return true;
},
/**
* Stop playing this sound.
*
* @method Phaser.Sound.BaseSound#stop
* @returns {boolean} Whether the sound was stopped successfully.
*/
stop: function () {
if (!this.isPaused && !this.isPlaying) {
return false;