Skip to content

Commit 261452a

Browse files
Updated removeByKey method docs
1 parent 89ad4f1 commit 261452a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,11 @@ var BaseSoundManager = new Class({
194194
return false;
195195
},
196196
/**
197+
* Removes all sounds from the sound manager that have an asset key matching the given value.
198+
* The removed sounds are destroyed before removal.
197199
*
198-
* @param {string} key
200+
* @method Phaser.Sound.BaseSoundManager#removeByKey
201+
* @param {string} key - The key to match when removing sound objects.
199202
* @returns {number} The number of matching sound objects that were removed.
200203
*/
201204
removeByKey: function (key) {

0 commit comments

Comments
 (0)