From: Kevin Sawicki Date: Thu, 16 Feb 2017 19:18:13 +0000 (-0800) Subject: Document menu.closePopup X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c6506e5aa735a6dd81d5418a568605ddae2b069;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Document menu.closePopup --- diff --git a/docs/api/menu.md b/docs/api/menu.md index 6969c44..466d226 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -54,8 +54,7 @@ The `menu` object has the following instance methods: #### `menu.popup([browserWindow, options])` -* `browserWindow` BrowserWindow (optional) - Default is - `BrowserWindow.getFocusedWindow()`. +* `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 @@ -69,6 +68,12 @@ The `menu` object has the following instance methods: Pops up this menu as a context menu in the `browserWindow`. +#### `menu.closePopup([browserWindow])` + +* `browserWindow` BrowserWindow (optional) - Default is the focused window. + +Closes the context menu in the `browserWindow`. + #### `menu.append(menuItem)` * `menuItem` MenuItem