This commit is contained in:
Justin Palmer
2013-02-11 13:31:07 -08:00
parent d448db41d1
commit 96e2044e18
2 changed files with 6 additions and 5 deletions

View File

@@ -45,10 +45,8 @@ class TabView extends SortableList
@find(".tab:eq(#{index})").remove()
containsTab: (tab) ->
unique = true
path = $(tab).view().buffer.file.path
paths = $.makeArray(@find('.tab')).map (e) ->
$(e).view().buffer.file.path
path = $(tab).view().representedPath()
paths = $.makeArray(@find('.tab')).map (e) -> $(e).view().representedPath()
return paths.some (tabpath) -> tabpath == path

View File

@@ -38,4 +38,7 @@ class Tab extends View
fileNameText = 'untitled'
@fileName.text(fileNameText)
@fileName.attr('title', @editSession.getPath())
@fileName.attr('title', @editSession.getPath())
representedPath: ->
@buffer.file.path