Skip to content

Commit

Permalink
fix: make sure that cues copy over their id (#4154)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Mar 2, 2017
1 parent 288edd1 commit 072c277
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/tracks/text-track.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ class TextTrack extends Track {
for (const prop in originalCue) {
cue[prop] = originalCue[prop];
}

// make sure that `id` is copied over
cue.id = originalCue.id;
}

const tracks = this.tech_.textTracks();
Expand Down

0 comments on commit 072c277

Please sign in to comment.