mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Added stop method docs
This commit is contained in:
parent
2effb504be
commit
1f1aebdaf1
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue