Merge pull request #923 from ffdd/patch-1

Add that Menu.setApplication only works after 'ready' event.
This commit is contained in:
Cheng Zhao 2014-12-17 10:29:46 -08:00
commit 64a41b65bb

View file

@ -155,7 +155,8 @@ var template = [
];
menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
Menu.setApplicationMenu(menu); // Must be called within app.on('ready', function(){ ... });
```
## Class: Menu