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

    @hideHandleCloseIcons() if options.hideHandleCloseIcons
    @hideHandleContainer()  if options.hideHandleContainer

    @on "PaneRemoved", => @resizeTabHandles type : "PaneRemoved"
    @on "PaneAdded", (pane)=> @resizeTabHandles {type : "PaneAdded", pane}
    @on "PaneDidShow", @bound "setActivePane"

    if options.paneData.length > 0
      @on "viewAppended", => @createPanes options.paneData

    @tabHandleContainer.on "mouseenter", =>
      @blockTabHandleResize = yes
    @tabHandleContainer.on "mouseleave", =>
      @blockTabHandleResize = no
      @resizeTabHandles()

  # ADD/REMOVE PANES
  createPanes:(paneData = @getOptions().paneData)->

      @emit "PaneAdded", paneInstance

      {minHandleWidth, maxHandleWidth} = @getOptions()

      newTabHandle.getDomElement().css
        maxWidth : maxHandleWidth
        minWidth : minHandleWidth
