           @sort data.type
 
     @inboxTabs = new KDTabView
-      cssClass  : "inbox-tabview" 
+      cssClass  : "inbox-tabview"
     @inboxTabs.hideHandleContainer()
 
     inboxSplitView = @inboxSplitView = new ContentPageSplitBelowHeader

class PageInbox extends KDView
  
  KD.registerPage "Inbox", PageInbox

  createCommons:->
    @addSubView header = new HeaderViewSection type : "big", title : "Inbox"

    # Common left pane 
    @commonInnerNavigation = new InboxInnerNavigation

    @commonInnerNavigation.registerListener 
      KDEventTypes : "CommonInnerNavigationListItemReceivedClick"
      listener     : @
      callback     : (pubInst, data)=>

        @messageInputElement.setValue ''
        @propagateEvent KDEventType: 'ReplyShouldBeSent', {message: @messageInputElement.getData(), reply}

    @listenTo
      KDEventTypes       : "viewAppended"
      listenedToInstance : @messageInputElement
      callback           : messagesSplit._windowDidResize

    return tab

  createNotificationsTab:->
