Set root node to workspace view when it’s constructed

Makes it easier to deal with specs
This commit is contained in:
Nathan Sobo
2014-09-11 14:16:12 -06:00
parent e4264035d8
commit 8b7b946429
2 changed files with 1 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ class WorkspaceView extends View
initialize: (model) ->
@model = model ? atom.workspace ? new Workspace unless @model?
@element.getModel = -> model
atom.commands.setRootNode(@[0])
panes = new PaneContainerView(@model.paneContainer)
@panes.replaceWith(panes)