Move state loading for Atom environment to an instance method

This commit is contained in:
Nathan Sobo
2015-10-02 11:28:50 -06:00
parent a87605164b
commit 6c67f42eab
5 changed files with 59 additions and 76 deletions

View File

@@ -15,9 +15,10 @@ process.env.NODE_PATH = exportsPath
process.env.NODE_ENV ?= 'production' unless devMode
Atom = require './atom'
window.atom = Atom.loadOrCreate('editor')
window.atom = new Atom
atom.displayWindow() unless isSpec
atom.displayWindow()
atom.loadStateSync()
atom.startEditorWindow()
# Workaround for focus getting cleared upon window creation