Call open on model instead of view

This commit is contained in:
Kevin Sawicki
2014-04-30 11:29:01 -07:00
parent 1367f08de8
commit b260cbb43a

View File

@@ -29,7 +29,7 @@ class WindowEventHandler
@subscribe $(window), 'window:open-path', (event, {pathToOpen, initialLine, initialColumn}) ->
unless fs.isDirectorySync(pathToOpen)
atom.workspaceView?.open(pathToOpen, {initialLine, initialColumn})
atom.workspace?.open(pathToOpen, {initialLine, initialColumn})
@subscribe $(window), 'beforeunload', =>
confirmed = atom.workspaceView?.confirmClose()