       @handleEvent type : "PaneAdded",pane : paneInstance
       return paneInstance
     else
-      warn "You can't add #{paneInstance.constructor.name if paneInstance?.constructor?.name?} as a pane, use KDTabPaneView instead." 
+      warn "You can't add #{paneInstance.constructor.name if paneInstance?.constructor?.name?} as a pane, use KDTabPaneView instead."
       false
 
   removePane:(pane)->

        title   : paneInstance.options.name
        hidden  : paneInstance.options.hiddenHandle
        view    : paneInstance.options.tabHandleView
      paneInstance.tabHandle = newTabHandle      
      @listenTo
        KDEventTypes : "click"
        listenedToInstance : newTabHandle

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


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