Remove the closed event of Menu

The callback of Menu.popup does more things, and there is actually no
request for the closed event.
This commit is contained in:
Cheng Zhao 2018-01-01 17:22:07 +09:00
parent 73d78d345a
commit 46330ac2a9
6 changed files with 1 additions and 50 deletions

View file

@ -115,13 +115,6 @@ can have a submenu.
Objects created with `new Menu` or returned by `Menu.buildFromTemplate` emit
the following events:
#### Event: 'closed'
Emitted when the menu is closed.
Note that one menu can be shown for multiple windows, and in this case the
`closed` event would be emitted for multiple times.
## Examples
The `Menu` class is only available in the main process, but you can also use it