Use atom.workspace.getView to construct WorkspaceViews

It returns the root DOM node of the workspace. Eventually this will
be a custom element but for now it’s just a DOM node with a
__spacePenView reference on it.
Esse commit está contido em:
Nathan Sobo
2014-09-16 18:06:23 -06:00
commit 7f41be3103
6 arquivos alterados com 12 adições e 7 exclusões
+1 -1
Ver Arquivo
@@ -7,7 +7,7 @@ describe "editorView.", ->
beforeEach ->
atom.workspaceViewParentSelector = '#jasmine-content'
atom.workspaceView = new WorkspaceView
atom.workspaceView = atom.workspace.getView(atom.workspace).__spacePenView
atom.workspaceView.attachToDom()
atom.workspaceView.width(1024)