#= require websocket_rails/main
#= require hamlcoffee
#= require json2
#= require underscore
#= require backbone
#= require backbone/xmpp
#= require i18n
#= require i18n/translations
#= require _main
#= require chat

#aa = new Xmpp.Views.Popup.NewAccountView()
#aa.render();

App.Com.connect( (connected_jid) ->
  App.Com.initRoster(->
    App.Com.startFetchingVcards()
    App.Com.startPollingRoster()
    App.Com.setPresence()

    App.Com.getMe()
    App.Com.startPollingMessages()
  )
)