Xmpp.Views.Chat ||= {}
class Xmpp.Views.Chat.WindowView extends Backbone.View
template: JST["backbone/templates/chat/window"]
el: $('#conversation-js')
initialize: () ->
_.bindAll(this)
@tab = @attributes['tab']
@date = new Date() #pre testovacie ucely
render: ->
$(@el).html(@template(date: @date.getTime()))
@show()
return this
hide: ->
$(@el).addClass('hidden')
this
show: ->
$(@el).removeClass('hidden')
this
remove: ->
@undelegateEvents()
$(@el).empty()
# @stopListening() TODO: po upgrade na 1.0 uz bude pristupne
this |