Skip to content

Commit

Permalink
[JW8-5672] Just clear the model cues and don't call updateCues()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Bussey committed Mar 13, 2019
1 parent cdbbe54 commit be76fe4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/js/view/controls/components/timeslider.js
Expand Up @@ -177,7 +177,7 @@ class TimeSlider extends Slider {
return;
}
this.reset();
this.updateCues(model, []);
model.set('cues', []);

const tracks = playlistItem.tracks;
each(tracks, function (track) {
Expand Down Expand Up @@ -280,12 +280,6 @@ class TimeSlider extends Slider {
}

updateCues(model, cues) {
// If updateCues is called with cues === [], clear the cues on the model.
// This will clear out the cues on the model on new playlist items.
if (cues && cues.length === 0) {
model.set('cues', cues);
}

this.resetCues();
if (cues && cues.length) {
cues.forEach((ele) => {
Expand Down

0 comments on commit be76fe4

Please sign in to comment.