     return @panes.filter (pane) -> pane.tabHandle.isHidden() is no
 
 
-  resizeTabHandles: KD.utils.throttle ->
-
+  resizeTabHandles: ->
     return if not @getOptions().resizeTabHandles or \
                   @_tabHandleContainerHidden     or @blockTabHandleResize
 
+    { lastTabHandleMargin } = @getOptions()
+
     visibleHandles   = []
     visibleTotalSize = 0
-    options          = @getOptions()
-    outerWidth       = @tabHandleContainer.tabs.$().outerWidth no
-    containerSize    = outerWidth - options.lastTabHandleMargin
-    containerMargin  = 100 - (100 * options.lastTabHandleMargin / containerSize)
+    outerWidth       = @tabHandleContainer.tabs.getElement().offsetWidth
+
+    return if outerWidth <= 0
+
+    containerSize    = outerWidth - lastTabHandleMargin
+    containerMargin  = 100 - (100 * lastTabHandleMargin / containerSize)
 
     for handle in @handles when not handle.isHidden()
       visibleHandles.push handle
-      visibleTotalSize += handle.$().outerWidth no
+      visibleTotalSize += handle.getElement().offsetWidth
 
     possiblePercent = (containerMargin / visibleHandles.length).toFixed 2
 
     handle.setWidth(possiblePercent, "%") for handle in visibleHandles
-
-  , 300

      @emit "PaneAdded", paneInstance

      {minHandleWidth, maxHandleWidth} = @getOptions()
      newTabHandle.getDomElement().css
        maxWidth : maxHandleWidth
        minWidth : minHandleWidth

  handleClicked:(index,event)->
    pane = @getPaneByIndex index
    if $(event.target).hasClass "close-tab"
      @blockTabHandleResize = yes
      @removePane pane
      return no
    @showPane pane
