     handle = @getHandleByIndex index
     handle.getDomElement().addClass "hide-close-icon"
 
-  resizeTabHandles:->
+  resizeTabHandles: KD.utils.throttle ->
     return if not @getOptions().resizeTabHandles or @_tabHandleContainerHidden
 
     @tabHandleContainer.$().addClass "resize-in-action"

  constructor:(options = {}, data)->
    
    options.resizeTabHandles  ?= no
    @handles                   = []
    @panes                     = []
    @selectedIndex             = []


    visibleHandles   = []
    visibleTotalSize = 0
    options          = @getOptions()
    containerSize    = @tabHandleContainer.$().outerWidth no


    for handle in @handles
      unless handle.isHidden()
        visibleHandles.push handle
        visibleTotalSize += handle.$().outerWidth no

    if containerSize < visibleTotalSize + 40
      for handle in visibleHandles
        possibleWidth = containerSize / visibleHandles.length - 10
        handle.$().css width: if possibleWidth > options.maxHandleWidth then options.maxHandleWidth else possibleWidth
    else 
      for handle in visibleHandles
        handle.$().css width: options.maxHandleWidth

    @resizeTimer = @utils.wait 300, =>
      @tabHandleContainer.$().removeClass "resize-in-action"
  , 100

  _windowDidResize:(event)=> @resizeTabHandles event
