Skip to content

Commit c89cfcd

Browse files
Added removeMarker method docs
1 parent 418f957 commit c89cfcd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ var BaseSound = new Class({
224224
this.markers[marker.name] = Extend(true, this.markers[marker.name], marker);
225225
return true;
226226
},
227+
/**
228+
* Removes a marker from the sound.
229+
*
230+
* @method Phaser.Sound.BaseSound#removeMarker
231+
* @param {string} markerName - The name of the marker to remove.
232+
* @returns {ISoundMarker|null} Removed marker object or 'null' if there was no marker with provided name.
233+
*/
227234
removeMarker: function (markerName) {
228235
var marker = this.markers[markerName];
229236
if (!marker) {

0 commit comments

Comments
 (0)