 
 
   syncChange: (change) ->
+
     {context} = change
 
     return  if not @rtm or not @rtm.isReady or not context



  listenChangeEvents: ->
    @changes = @rtm.getFromModel 'changes'
    @changes?.clear()  if @amIHost

    @rtm.bindRealtimeListeners @changes, 'list'

    @rtm.on 'ValuesAddedToList', (list, value) =>
      @handleChange value.values[0]  if list is @changes

    @rtm.on 'ValuesRemovedFromList', (list, value) =>
      @handleChange value.values[0]  if list is @changes


  handleChange: (change) ->


    @rtm.once 'FileLoaded', (doc) =>
      @rtm.setRealtimeDoc doc
      nickname           = KD.nick()
      @participants      = @rtm.getFromModel 'participants'
      @changes           = @rtm.getFromModel 'changes'
      @broadcastMessages = @rtm.getFromModel 'broadcastMessages'

      unless @participants
        @participants = @rtm.create 'list', 'participants', []

      unless @changes
        @changes = @rtm.create 'list', 'changes', []

      unless @broadcastMessages
        @broadcastMessages = @rtm.create 'list', 'broadcastMessages', []

      isInList = no

