mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Make Menu.popup accept no parameter
This commit is contained in:
@@ -237,9 +237,9 @@ Generally, the `template` is just an array of `options` for constructing a
|
||||
You can also attach other fields to the element of the `template` and they
|
||||
will become properties of the constructed menu items.
|
||||
|
||||
### `Menu.popup(browserWindow[, x, y])`
|
||||
### `Menu.popup([browserWindow, x, y])`
|
||||
|
||||
* `browserWindow` BrowserWindow
|
||||
* `browserWindow` BrowserWindow (optional)
|
||||
* `x` Number (optional)
|
||||
* `y` Number (**required** if `x` is used)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user