mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Attach CommandRegistry to window in constructor
This commit is contained in:
@@ -133,6 +133,7 @@ class AtomEnvironment extends Model
|
||||
|
||||
CommandRegistry = require './command-registry'
|
||||
@commands = new CommandRegistry
|
||||
@commands.attach(@window)
|
||||
|
||||
GrammarRegistry = require './grammar-registry'
|
||||
@grammars = new GrammarRegistry({@config})
|
||||
@@ -607,8 +608,6 @@ class AtomEnvironment extends Model
|
||||
@setAutoHideMenuBar(newValue)
|
||||
@setAutoHideMenuBar(true) if @config.get('core.autoHideMenuBar')
|
||||
|
||||
@commands.attach(window)
|
||||
|
||||
@openInitialEmptyEditorIfNecessary()
|
||||
|
||||
unloadEditorWindow: ->
|
||||
|
||||
Reference in New Issue
Block a user