   seedRecords: ->
     @seedTeamRecords().concat(@seedMatchRecord())
                       .concat(@seedScoredMatchRecord())
+                      .concat(@seedKnockoutsRecord())
 
   seedTeamRecords: ->
     for team, record of @teams

  seedScoredMatchRecord: ->
    return [] if not @lastScoredMatch?
    [{event: 'scored-to', data: @lastScoredMatch}]

  txTeamRecord: (tla, record) ->
    @events.push

        event: 'scored-to'
        data: @lastScoredMatch

  updateKnockouts: ->
    knockouts = (match for match in @matches when match.type is 'knockout')
    if not _.isEqual(knockouts, @knockouts)
      @knockouts = knockouts
      @events.push
        event: 'knockouts'
        data: @knockouts

module.exports =
  SRComp: SRComp
