mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Set root node to workspace view when it’s constructed
Makes it easier to deal with specs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user