mirror of
https://github.com/atom/atom.git
synced 2026-02-10 22:55:09 -05:00
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:
@@ -26,8 +26,6 @@ Task = require './task'
|
||||
#
|
||||
module.exports =
|
||||
class Workspace extends Model
|
||||
atom.deserializers.add(this)
|
||||
|
||||
@deserialize: (state) ->
|
||||
return unless state?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user