app/assets/javascripts/backbone/views/contacts/contact.js.coffee
b27f285a
 Xmpp.Views.Contacts ||= {}
 
 class Xmpp.Views.Contacts.ContactView extends Backbone.View
   template: JST["backbone/templates/contacts/contact"]
 
 #  events:
 #    'click li.user': 'something'
 
   initialize: () ->
     _.bindAll(this)
 
     @el = '#' + @attributes['listView'].attributes['id'] + ' ul'
 
     @render()
 
   render: ->
     contact = @model.toJSON()
     $(@el).append(@template(contact))