Testing tweaks to operate Atom in single window mode

This commit is contained in:
Kevin Sawicki
2012-06-03 19:19:09 -07:00
parent a393f02d5a
commit 2c30ba36b3
2 changed files with 3 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ windowAdditions =
# Note: RootView assigns itself on window on initialization so that
# window.rootView is available when loading user configuration
attachRootView: (pathToOpen) ->
if rootViewState = atom.rootViewStates[$windowNumber]
if rootViewState = atom.rootViewStates?[$windowNumber]
RootView.deserialize(JSON.parse(rootViewState))
else
new RootView(pathToOpen)

View File

@@ -1,4 +1,6 @@
# Like sands through the hourglass, so are the days of our lives.
require 'window'
Atom = require 'atom'
window.atom = new Atom(atom.loadPath, $native)
window.startup $pathToOpen