     @setTabHandleContainer options.tabHandleContainer ? null
 
     @listenWindowResize()
-    
+
     @listenTo
       KDEventTypes        : ["PaneRemoved","paneAdded"]
       listenedToInstance  : @

    for title in paneTitlesArray
      @addPane pane = new @tabConstructor title : title,null
      pane.setTitle title
  
  addPane:(paneInstance)->
    if paneInstance instanceof KDTabPaneView 
      @panes.push paneInstance
      tabHandleClass = @getOptions().tabHandleView ? KDTabHandleView
      @addHandle newTabHandle = new tabHandleClass

        KDEventTypes        : "viewAppended"
        listenedToInstance  : @
        callback            : @createPanes


  handleMouseDownDefaultAction:(clickedTabHandle,event)->
    for handle,index in @handles
      if clickedTabHandle is handle
