Make app.setApplicationMenu an alias to Menu.setApplicationMenu.

This commit is contained in:
Cheng Zhao 2013-10-05 13:46:48 +08:00
parent 666f6b3a01
commit 93f1a3dbd5

View file

@ -13,6 +13,9 @@ app.getHomeDir = ->
app.getBrowserWindows = ->
objectsRegistry.getAllWindows()
app.setApplicationMenu = (menu) ->
require('menu').setApplicationMenu menu
app.commandLine =
appendSwitch: bindings.appendSwitch,
appendArgument: bindings.appendArgument