From 2d8e5e3a16cb624c4f69501ac3c70aa28bc1735a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 22 Jan 2016 11:29:26 -0700 Subject: [PATCH] docs: Default parameter for Menu.popup --- docs/api/menu.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 7b563d57..ca35d4bb 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -239,16 +239,15 @@ will become properties of the constructed menu items. ### `Menu.popup([browserWindow, x, y, positioningItem])` -* `browserWindow` BrowserWindow (optional) -* `x` Number (optional) -* `y` Number (**required** if `x` is used) -* `positioningItem` Number (optional) _OS X_ - -Pops up this menu as a context menu in the `browserWindow`. You -can optionally provide a `x,y` coordinate to place the menu at, otherwise it -will be placed at the current mouse cursor position. `positioningItem` is the -index of the menu item to be positioned under the mouse cursor at the specified -coordinates (only supported on OS X). +* `browserWindow` BrowserWindow (optional) - Default is `null`. +* `x` Number (optional) - Default is -1. +* `y` Number (**required** if `x` is used) - Default is -1. +* `positioningItem` Number (optional) _OS X_ - the index of the menu item to + be positioned under the mouse cursor at the specified coordinates. + +Pops up this menu as a context menu in the `browserWindow`. You can optionally +provide a `x, y` coordinate to place the menu at, otherwise it will be placed +at the current mouse cursor position. ### `Menu.append(menuItem)` -- 2.43.0