 
     @paneContainer = @pane.getContainer()
     @addTabForItem(item) for item in @pane.getItems()
+    @clearPreviewTabs()
 
     @subscriptions.add @pane.onDidDestroy =>
       @unsubscribe()

    @subscriptions = new CompositeDisposable

    @subscriptions.add atom.commands.add atom.views.getView(@pane),
      'tabs:keep-preview-tab': => tab.clearPreview() for tab in @getTabs()

    @subscriptions.add atom.commands.add @element,
      'tabs:close-tab': => @closeTab()

  isPreviewableItem: (item) ->
    atom.config.get('tabs.usePreviewTabs') and item instanceof TextEditor

  clearPreviewTabs: ->
    tab.clearPreview() for tab in @getTabs()
    return

  addTabForItem: (item, index) ->
    tabView = new TabView()
    tabView.initialize(item)
    @previewTab ?= tabView if tabView.isPreviewTab
    @insertTabAtIndex(tabView, index)

  moveItemTabToIndex: (item, index) ->
    if tab = @tabForItem(item)
