Skip to content

Commit 1f1aebd

Browse files
Added stop method docs
1 parent 2effb50 commit 1f1aebd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ var BaseSound = new Class({
308308
this.isPaused = false;
309309
return true;
310310
},
311+
/**
312+
* Stop playing this sound.
313+
*
314+
* @method Phaser.Sound.BaseSound#stop
315+
* @returns {boolean} Whether the sound was stopped successfully.
316+
*/
311317
stop: function () {
312318
if (!this.isPaused && !this.isPlaying) {
313319
return false;

0 commit comments

Comments
 (0)