 
   sendMessage: (event) =>
     event.preventDefault()
-    data = _.object(_.map($(event.target).serializeArray(), _.values))
+    data = _.object _.map $(event.target).serializeArray(), _.values
     message = new Message text: data.text
     message.url = "/bb/conversations/#{@id}/messages"
     message.save {},


  conversation: (id) ->
    chatView = new ChatView id: id
    $('.main').html(chatView.$el)
    window.chatView = chatView
    return

class App
  constructor: ->
    @router = new Router()
    @navigationView = new NavigationView()
    @navigationView.render()

(exports ? this).App = App

  template: _.template $('#conversation-list-view').html()

  initialize: ->
    @collection = new Conversations
    @listenTo @collection, 'update', @render
    @collection.fetch()
    return
