From 974743d46cfd60f00beaef6e107e5477ca6c6c68 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 13 Oct 2015 20:11:52 -0600 Subject: [PATCH] Attach CommandRegistry to window in constructor --- src/atom-environment.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/atom-environment.coffee b/src/atom-environment.coffee index de410ef23..363371ed7 100644 --- a/src/atom-environment.coffee +++ b/src/atom-environment.coffee @@ -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: ->