function ChaptersTrackMenuItem(player, options) {
    classCallCheck(this, ChaptersTrackMenuItem);

    var track = options.track;
    var cue = options.cue;
    var currentTime = player.currentTime();

    // Modify options for parent MenuItem class's init.
    options.selectable = true;
    options.label = cue.text;
    options.selected = cue.startTime <= currentTime && currentTime < cue.endTime;

    var _this = possibleConstructorReturn(this, _MenuItem.call(this, player, options));

    _this.track = track;
    _this.cue = cue;
    track.addEventListener('cuechange', bind(_this, _this.update));
    return _this;
  }
function ChaptersTrackMenuItem(player, options) {
    classCallCheck(this, ChaptersTrackMenuItem);

    var track = options.track;
    var cue = options.cue;
    var currentTime = player.currentTime();

    
    options.selectable = true;
    options.label = cue.text;
    options.selected = cue.startTime <= currentTime && currentTime < cue.endTime;

    var _this = possibleConstructorReturn(this, _MenuItem.call(this, player, options));

    _this.track = track;
    _this.cue = cue;
    track.addEventListener('cuechange', bind(_this, _this.update));
    return _this;
  }
function ChaptersTrackMenuItem ( player , options ) { classCallCheck ( this , ChaptersTrackMenuItem ) ; var track = options . track ; var cue = options . cue ; var currentTime = player . currentTime ( ) ; // Modify options for parent MenuItem class's init. options . selectable = true ; options . label = cue . text ; options . selected = cue . startTime <= currentTime && currentTime < cue . endTime ; var _this = possibleConstructorReturn ( this , _MenuItem . call ( this , player , options ) ) ; _this . track = track ; _this . cue = cue ; track . addEventListener ( 'cuechange' , bind ( _this , _this . update ) ) ; return _this ; }
Creates an instance of this class.

@param {Player} player
The `Player` that this class should be attached to.

@param {Object} [options]
The key/value store of player options.
Creates an instance of this class .