Move WorkspaceView::destroyActivePaneItem to the model

This commit is contained in:
Nathan Sobo
2014-01-14 10:56:42 -07:00
parent 89cbd6b834
commit af4034ba39
2 changed files with 6 additions and 5 deletions

View File

@@ -119,6 +119,10 @@ class Workspace extends Model
saveActivePaneItemAs: ->
@activePane?.saveActiveItemAs()
# Public: destroy/close the active item.
destroyActivePaneItem: ->
@activePane?.destroyActiveItem()
# Private: Removes the item's uri from the list of potential items to reopen.
itemOpened: (item) ->
if uri = item.getUri?()