We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3337b6 commit a2ceff6Copy full SHA for a2ceff6
1 file changed
v3/src/sound/BaseSound.js
@@ -184,12 +184,13 @@ var BaseSound = new Class({
184
return true;
185
},
186
removeMarker: function (markerName) {
187
- if (!this.markers[markerName]) {
+ var marker = this.markers[markerName];
188
+ if (!marker) {
189
console.error('removeMarker - Marker with name \'' + marker.name + '\' does not exist for sound \'' + this.key + '\'!');
- return false;
190
+ return null;
191
}
192
this.markers[markerName] = null;
- return true;
193
+ return marker;
194
195
play: function (markerName, config) {
196
if (markerName === void 0) { markerName = ''; }
0 commit comments