From 5979dab13cbcd1270ec35961c8e9b90c908cd946 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Mon, 14 Nov 2016 16:24:48 -0800 Subject: [PATCH] fix some class headings --- docs/api/menu-item.md | 6 +----- docs/api/menu.md | 4 +--- docs/api/tray.md | 7 +++---- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/docs/api/menu-item.md b/docs/api/menu-item.md index 90d57478b15..5b5324df031 100644 --- a/docs/api/menu-item.md +++ b/docs/api/menu-item.md @@ -1,4 +1,4 @@ -# MenuItem +## Class: MenuItem > Add items to native application menus and context menus. @@ -6,10 +6,6 @@ Process: [Main](../tutorial/quick-start.md#main-process) See [`Menu`](menu.md) for examples. -## Class: MenuItem - -Create a new `MenuItem` with the following method: - ### `new MenuItem(options)` * `options` Object diff --git a/docs/api/menu.md b/docs/api/menu.md index 37085fcd399..1410c105865 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -1,4 +1,4 @@ -# Menu +## Class: Menu > Create native application menus and context menus. @@ -217,8 +217,6 @@ window.addEventListener('contextmenu', (e) => { ``` -## Class: Menu - ### `new Menu()` Creates a new menu. diff --git a/docs/api/tray.md b/docs/api/tray.md index 1e1d8524aaa..f83117bdb9a 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -1,9 +1,11 @@ -# Tray +## Class: Tray > Add icons and context menus to the system's notification area. Process: [Main](../tutorial/quick-start.md#main-process) +`Tray` is an [EventEmitter][event-emitter]. + ```javascript const {app, Menu, Tray} = require('electron') @@ -55,9 +57,6 @@ app.on('ready', () => { If you want to keep exact same behaviors on all platforms, you should not rely on the `click` event and always attach a context menu to the tray icon. -## Class: Tray - -`Tray` is an [EventEmitter][event-emitter]. ### `new Tray(image)`