     @getDelegate().setPaneTitle @,title
     @setOption "name", name
     @name = title
-    
+
   getHandle: ->
     @getDelegate().getHandleByPane @
-    
+
   hideTabCloseIcon:()->
     @getDelegate().hideCloseIcon @
-  
+
 class KDTabHandleView extends KDView
   constructor:(options)->
     options = $.extend

    @getDomElement().removeClass("kdhiddentab").addClass("active")
    @active = yes
    @handleEvent type : "KDTabPaneActive"
    
  hide:()->
    @getDomElement().removeClass("active").addClass("kdhiddentab")
    @active = no
    @handleEvent type : "KDTabPaneInactive"
  
  viewAppended:()->
    {name} = @getOptions()
    @setClass "kdtabpaneview"# #{name or ''}" Why do we need something like crazy?

    @domElement = $ "<div class='kdtabhandle #{c}'>
                      <span class='close-tab'></span>
                    </div>"

  viewAppended:()->
    if (view = @getOptions().view)?
      @addSubView view
    else
      @setPartial @partial()

  partial:->
    $ "<b>#{@getOptions().title or 'Default Title'}</b>"

  makeActive:()->
    @getDomElement().addClass "active"

