 
 
   removeParticipantFromParticipantList: (nickname) ->
-    return throw new Error "participants is not set"  unless @participants
+    return throwError "participants is not set"  unless @participants
 
     # find the index for participant
     for participant, index in @participants.asArray()



  createChatPaneView: (channel) ->

    options = { @rtm, @isInSession }
    @getView().addSubView @chat = new IDE.ChatView options, channel

        break

  removeParticipantFromMaps: (nickname) ->
    return throwError "rtm is not set"   unless @rtm

    myWatchMapName     = "#{nickname}WatchMap"
    mySnapshotName     = "#{nickname}Snapshot"
