Destroy all pane models when workspace view is removed

This commit is contained in:
Nathan Sobo
2014-01-15 12:06:55 -07:00
parent 41dd4a386a
commit 5e14d44d6a
4 changed files with 13 additions and 2 deletions

View File

@@ -145,3 +145,7 @@ class Workspace extends Model
onPaneItemDestroyed: (item) =>
if uri = item.getUri?()
@destroyedItemUris.push(uri)
# Private: Called by Model superclass when destroyed
destroyed: ->
@paneContainer.destroy()