mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Rename menu-bar to application-menu
Also move it to the src root in preparation for it's use in the browser process
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
e057d35048
commit
4d8b2672ff
@@ -1,7 +1,7 @@
|
||||
ipc = require 'ipc'
|
||||
|
||||
module.exports =
|
||||
class MenuBar
|
||||
class ApplicationMenu
|
||||
keyBindingsByCommand: null
|
||||
|
||||
constructor: (@keyBindingsByCommand) ->
|
||||
@@ -5,7 +5,7 @@ $ = require 'jquery'
|
||||
less = require 'less'
|
||||
remote = require 'remote'
|
||||
WindowEventHandler = require 'window-event-handler'
|
||||
MenuBar = require 'menu-bar'
|
||||
ApplicationMenu = require 'application-menu'
|
||||
require 'jquery-extensions'
|
||||
require 'underscore-extensions'
|
||||
require 'space-pen-extensions'
|
||||
@@ -55,7 +55,7 @@ window.startEditorWindow = ->
|
||||
atom.activatePackages()
|
||||
keymap.loadUserKeymaps()
|
||||
atom.requireUserInitScript()
|
||||
new MenuBar(keymap.toObject())
|
||||
new ApplicationMenu(keymap.toObject())
|
||||
$(window).on 'unload', -> unloadEditorWindow(); false
|
||||
atom.show()
|
||||
atom.focus()
|
||||
|
||||
Reference in New Issue
Block a user