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

@@ -3,10 +3,15 @@ require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')
path = require 'path'
ipc = require 'ipc'
ipc.send('call-window-method', 'openDevTools')
try
require '../src/window'
Atom = require '../src/atom'
window.atom = Atom.loadOrCreate('spec')
window.atom = new Atom
# Show window synchronously so a focusout doesn't fire on input elements
# that are focused in the very first spec run.