Skip to content

Commit

Permalink
fix incorrect invocation of clearCurrentCues
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 11, 2017
1 parent df1eb38 commit 5c35f28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/timeline-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class TimelineController extends EventHandler {
else
{
self.textTrack1 = existingTrack1;
self.clearCurrentCues(self.textTrack1);
clearCurrentCues(self.textTrack1);

sendAddTrackEvent(self.textTrack1, self.media);
}
Expand Down Expand Up @@ -110,6 +110,7 @@ class TimelineController extends EventHandler {
else
{
self.textTrack2 = existingTrack2;
clearCurrentCues(self.textTrack2);

sendAddTrackEvent(self.textTrack2, self.media);
}
Expand Down

0 comments on commit 5c35f28

Please sign in to comment.