Remove the old root view properly

This commit is contained in:
Nathan Sobo
2014-09-18 13:42:13 -06:00
parent 32f0eb4f76
commit 465d2afd95
6 changed files with 115 additions and 90 deletions

View File

@@ -29,11 +29,12 @@ class Workspace extends Model
@delegatesProperty 'activePane', 'activePaneItem', toProperty: 'paneContainer'
@properties
viewRegistry: null
paneContainer: null
fullScreen: false
destroyedItemUris: -> []
constructor: ->
constructor: (params) ->
super
@emitter = new Emitter
@@ -61,6 +62,7 @@ class Workspace extends Model
params.viewRegistry = new ViewRegistry
params.paneContainer.viewRegistry = params.viewRegistry
console.log "deserializing pane container"
params.paneContainer = PaneContainer.deserialize(params.paneContainer)
params