     @isPreviewTab = false
     if atom.config.get('tabs.usePreviewTabs') and @item instanceof TextEditor
       @isPreviewTab = true
-      @addEventListener 'dblclick', =>
-        @isPreviewTab = false
-        @itemTitle.classList.remove('temp')
+      @addEventListener 'dblclick', => @clearPreview()
 
     @classList.add('tab', 'sortable')
 

  getTabs: ->
    @parentElement?.querySelectorAll('.tab') ? []

  updateIconVisibility: ->
    if atom.config.get 'tabs.showIcons'
      @itemTitle.classList.remove('hide-icon')


  updateModifiedStatus: ->
    if @item.isModified?()
      @clearPreview() if atom.config.get('tabs.usePreviewTabs')
      @classList.add('modified') unless @isModified
      @isModified = true
    else
