Skip to content

Commit d856a97

Browse files
Reverting to resetting config on every play method call
1 parent 11d9d54 commit d856a97

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ var BaseSound = new Class({
207207
console.error('Sound marker name has to be a string!');
208208
return null;
209209
}
210-
var previousConfig = this.currentConfig;
211210
if (!markerName) {
212211
this.currentMarker = null;
213212
this.currentConfig = this.config;
@@ -222,9 +221,7 @@ var BaseSound = new Class({
222221
this.currentConfig = this.currentMarker.config;
223222
this.duration = this.currentMarker.duration;
224223
}
225-
if (previousConfig !== this.currentConfig) {
226-
this.resetConfig();
227-
}
224+
this.resetConfig();
228225
this.currentConfig = Extend(this.currentConfig, config);
229226
this.isPlaying = true;
230227
this.isPaused = false;

0 commit comments

Comments
 (0)