Skip to content

Commit

Permalink
Replace Object.values with [].slice.call
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bartos committed Dec 4, 2018
1 parent f9d6fad commit 8a8304a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/timeline-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class TimelineController extends EventHandler {
this.tracks.forEach((track, index) => {
let textTrack;
if (index < inUseTracks.length) {
const inUseTrack = Object.values(inUseTracks).find(inUseTrack => canReuseVttTextTrack(inUseTrack, track));
const inUseTrack = [].slice.call(inUseTracks).find(inUseTrack => canReuseVttTextTrack(inUseTrack, track));
// Reuse tracks with the same label, but do not reuse 608/708 tracks
if (inUseTrack) {
textTrack = inUseTrack;
Expand Down

0 comments on commit 8a8304a

Please sign in to comment.