mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Rename Atom to AtomEnvironment
This commit is contained in:
@@ -40,7 +40,7 @@ TextEditorElement = require './text-editor-element'
|
||||
#
|
||||
# An instance of this class is always available as the `atom` global.
|
||||
module.exports =
|
||||
class Atom extends Model
|
||||
class AtomEnvironment extends Model
|
||||
@version: 1 # Increment this when the serialization format changes
|
||||
|
||||
workspaceParentSelectorctor: 'body'
|
||||
@@ -14,8 +14,8 @@ process.env.NODE_PATH = exportsPath
|
||||
# Make React faster
|
||||
process.env.NODE_ENV ?= 'production' unless devMode
|
||||
|
||||
Atom = require './atom'
|
||||
window.atom = new Atom
|
||||
AtomEnvironment = require './atom-environment'
|
||||
window.atom = new AtomEnvironment
|
||||
|
||||
atom.displayWindow()
|
||||
atom.loadStateSync()
|
||||
|
||||
@@ -6,8 +6,8 @@ try
|
||||
ipc = require 'ipc'
|
||||
|
||||
require '../src/window'
|
||||
Atom = require '../src/atom'
|
||||
window.atom = new Atom
|
||||
AtomEnvironment = require '../src/atom-environment'
|
||||
window.atom = new AtomEnvironment
|
||||
|
||||
# Show window synchronously so a focusout doesn't fire on input elements
|
||||
# that are focused in the very first spec run.
|
||||
|
||||
Reference in New Issue
Block a user