Skip to content

Commit a2ceff6

Browse files
Returning marker/null instead of boolean in removeMarker
1 parent b3337b6 commit a2ceff6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@ var BaseSound = new Class({
184184
return true;
185185
},
186186
removeMarker: function (markerName) {
187-
if (!this.markers[markerName]) {
187+
var marker = this.markers[markerName];
188+
if (!marker) {
188189
console.error('removeMarker - Marker with name \'' + marker.name + '\' does not exist for sound \'' + this.key + '\'!');
189-
return false;
190+
return null;
190191
}
191192
this.markers[markerName] = null;
192-
return true;
193+
return marker;
193194
},
194195
play: function (markerName, config) {
195196
if (markerName === void 0) { markerName = ''; }

0 commit comments

Comments
 (0)