app/assets/javascripts/backbone/models/contact.js.coffee
ff94bdbf
 class Xmpp.Models.Contact extends Xmpp.Models.Model
   namespace: 'app.roster'
 
   defaults:
     name: 'unnamed'
     age: 0
 
   initialize: ->
     console.log "Welcome stranger"
 
     @on("change:name", (model) ->
       name = model.get("name");
       console.log "Changed my name to " + name
     )
 
 class Xmpp.Collections.ContactsCollection extends Backbone.Collection
   model: Xmpp.Models.Contact