Create a MenuBar object (instead of treating it like a singleton.)

This commit is contained in:
probablycorey
2013-08-17 10:22:08 -07:00
committed by Corey Johnson & Nathan Sobo
parent 6e3517dd4a
commit e057d35048
2 changed files with 15 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ window.startEditorWindow = ->
atom.activatePackages()
keymap.loadUserKeymaps()
atom.requireUserInitScript()
MenuBar.show(keymap.toObject())
new MenuBar(keymap.toObject())
$(window).on 'unload', -> unloadEditorWindow(); false
atom.show()
atom.focus()