Register deserializers, view providers, and commands in Atom constructor

Previously, these registrations were scattered all over the codebase and
required that `global.atom` be defined, which creating weird ordering
issues. Registering them all from the global makes the relationships
clearer and means we don’t have to assign a global to set up a fully-
functional environment.
This commit is contained in:
Nathan Sobo
2015-09-28 21:26:34 -06:00
parent 27762866c0
commit e0d426b817
11 changed files with 249 additions and 257 deletions

View File

@@ -4,8 +4,6 @@ Model = require './model'
module.exports =
class PaneAxis extends Model
atom.deserializers.add(this)
parent: null
container: null
orientation: null