 class MainTabView extends KDTabView
-
-  lastOpenPaneIndex = null
 
   constructor:(options,data)->
     options.resizeTabHandles    = yes

    @visibleHandles             = []
    @totalSize                  = 0
    super options,data

    appManager = @getSingleton("appManager")

    appManager.on 'AppManagerWantsToShowAnApp', (controller, view, options)=>

      if view.parent
        @showPane view.parent
      else
        @createTabPane options, view

    @getSingleton("mainView").on "mainViewTransitionEnd", (e) =>
      if e.target is @getSingleton("contentPanel").domElement[0]


    paneInstance.once "viewAppended", =>
      @applicationPaneReady paneInstance, mainView
      appController = @appManager.getByView mainView
      {appInfo}     = appController.getOptions()
      paneInstance.setTitle appInfo.title  if appInfo?.title

