We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11d9d54 commit d856a97Copy full SHA for d856a97
1 file changed
v3/src/sound/BaseSound.js
@@ -207,7 +207,6 @@ var BaseSound = new Class({
207
console.error('Sound marker name has to be a string!');
208
return null;
209
}
210
- var previousConfig = this.currentConfig;
211
if (!markerName) {
212
this.currentMarker = null;
213
this.currentConfig = this.config;
@@ -222,9 +221,7 @@ var BaseSound = new Class({
222
221
this.currentConfig = this.currentMarker.config;
223
this.duration = this.currentMarker.duration;
224
225
- if (previousConfig !== this.currentConfig) {
226
- this.resetConfig();
227
- }
+ this.resetConfig();
228
this.currentConfig = Extend(this.currentConfig, config);
229
this.isPlaying = true;
230
this.isPaused = false;
0 commit comments