       
     @trigger.addClass('active')
     @active = true
-    @clearNotifications()
-    
-    
-  hide: (speed) ->
+    
+    
+  hide: (speed) =>
     $.cookie "dashboard:active:#{@name}", null
       expires: 365
       path: "/"

    @chat_input = @frame.find(args.chat_input)
    @chat_form = @frame.find(args.chat_form)
    
    @seeded = false
    if $.cookie "dashboard:active:#{@name}"
      @preSeed()
    
    @faye = new Faye.Client("<%= Cloudsdale.config['url'] %>:9191/faye")
    @faye.subscribe "/chat", (data) =>
      eval data
      
    @chat_input.BetterGrow
      initial_height: 12
      do_not_enter: null
    .keydown (e) =>
      @resizeElements()
      if e.which == 13 and e.shiftKey == false
        @chat_form.submit()
        return false
      
    
    @chat_form.bind 'ajax:beforeSend', () =>
      @resetInput()

    .submit () =>
      @validateInput()
      
  preSeed: (path) =>
    super path
    if @chat_container
      $.getJSON path, (data) =>
        i = data.length - 1
        $.each data, (key, val) =>
          t = new Date(Date._parse(val.timestamp))
          @chat_container.prepend(
            "<div timestamp='#{val.timestamp}'class='message'>
            <h5 class='sender'>#{val.sender}<span class='time'>#{t.toString('HH:mm:ss')}</span></h5>
            <p class='content'>#{val.content}</p></div>")
          @correctWindow(true)
          if key == i
            window.setTimeout ( =>
              @correctWindow(true)
            ), 500
  
  resizeElements: () ->
    window.setTimeout ( =>
