From af09d8512567a5ddaebb355094e92110bfbb7fc7 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sat, 3 Jun 2017 14:50:10 +1000 Subject: [PATCH 1/2] Update menu.md --- docs/api/menu.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 6a30d49b1d6b..a1b62793121f 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -64,8 +64,9 @@ The `menu` object has the following instance methods: * `browserWindow` BrowserWindow (optional) - Default is the focused window. * `options` Object (optional) * `x` Number (optional) - Default is the current mouse cursor position. - * `y` Number (**required** if `x` is used) - Default is the current mouse - cursor position. + Must be declared if y is declared. + * `y` Number (optional) - Default is the current mouse cursor position. + Must be declared if x is declared. * `async` Boolean (optional) - Set to `true` to have this method return immediately called, `false` to return after the menu has been selected or closed. Defaults to `false`. From fb47dc9e48533116dd41109196e38ab7662f51f3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 5 Jun 2017 08:55:42 -0700 Subject: [PATCH 2/2] :art: --- docs/api/menu.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index a1b62793121f..6480c73cd00b 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -64,9 +64,9 @@ The `menu` object has the following instance methods: * `browserWindow` BrowserWindow (optional) - Default is the focused window. * `options` Object (optional) * `x` Number (optional) - Default is the current mouse cursor position. - Must be declared if y is declared. + Must be declared if `y` is declared. * `y` Number (optional) - Default is the current mouse cursor position. - Must be declared if x is declared. + Must be declared if `x` is declared. * `async` Boolean (optional) - Set to `true` to have this method return immediately called, `false` to return after the menu has been selected or closed. Defaults to `false`.