 
             if item.markup.TEXT1.plain is ' destroyed an '
                 if item.markup.PLAYER1.team is item.markup.PORTAL1.team
-                    response.push
+                    records.push
                         time:    item.time
                         player:  item.markup.PLAYER1
                         event:   'flip'

                if lastDestroyEvent?
                    if lastDestroyEvent.markup.PORTAL1.team isnt item.markup.PORTAL1.team and (lastCaptureEvent is null or lastCaptureEvent.time > lastDestroyEvent.time)
                        if lastDestroyEvent.markup.PLAYER1.team isnt lastDestroyEvent.markup.PORTAL1.team
                            response.push
                                time:    lastDestroyEvent.time
                                player:  lastDestroyEvent.markup.PLAYER1
                                event:   'flip'

moment = require 'moment'

###
