mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -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:
@@ -54,8 +54,6 @@ GutterContainer = require './gutter-container'
|
||||
# soft wraps and folds to ensure your code interacts with them correctly.
|
||||
module.exports =
|
||||
class TextEditor extends Model
|
||||
atom.deserializers.add(this)
|
||||
|
||||
callDisplayBufferCreatedHook: false
|
||||
registerEditor: false
|
||||
buffer: null
|
||||
|
||||
Reference in New Issue
Block a user