     @on "KDTabPaneActive",        @bound "setMainView"
     @on "KDTabPaneLazyViewAdded", @bound "fireLazyCallback"
 
+
   show:->
+
+    @setClass "active"
     @unsetClass "kdhiddentab"
-    @setClass "active"
     @active = yes
     @emit "KDTabPaneActive"
 
+
   hide:->
+
+    @setClass "kdhiddentab"
     @unsetClass "active"
-    @setClass "kdhiddentab"
     @active = no
     @emit "KDTabPaneInactive"
 
+
   setTitle:(title)->
-    @getDelegate().setPaneTitle @,title
-    # @setOption "name", name
+
+    @getDelegate().setPaneTitle this, title
     @name = title
 
-  getHandle: ->
-    @getDelegate().getHandleByPane @
 
-  hideTabCloseIcon:->
-    @getDelegate().hideCloseIcon @
+  getHandle: -> @getDelegate().getHandleByPane this
+
+
+  hideTabCloseIcon:-> @getDelegate().hideCloseIcon this
+
 
   setMainView:(view)->
 

    @emit "KDTabPaneLazyViewAdded", this, @mainView
    return @mainView

  getMainView:-> @mainView
  destroyMainView:->
    @mainView.destroy()
    delete @mainView

  fireLazyCallback:(pane, view)->
    {viewOptions} = @getOptions()
    return  unless viewOptions
    {callback} = viewOptions

class KDTabPaneView extends KDView

  constructor:(options = {},data)->

    options.hiddenHandle ?= no      # a Boolean
