tim-peterson / videojs-playlist

A plugin to play multiple audio tracks or multiple videos.
Other
71 stars 49 forks source link

Changed element.classList to element.className to allow IE9 and lower for compatibility #20

Closed rossjackson closed 9 years ago

rossjackson commented 9 years ago

Currently this doesn't work for IE9 and lower. This proposed change will make it work with IE9 and lower and Chrome and Mozilla.

Instead, use: if (tracks[i].className.indexOf('currentTrack') !== -1) {