📝 Fix typos regarding to #349.

This commit is contained in:
Cheng Zhao 2014-05-24 10:41:54 +08:00
parent 890448d5fa
commit 3d2464c30e
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
* `enabled` Boolean * `enabled` Boolean
* `visible` Boolean * `visible` Boolean
* `checked` Boolean * `checked` Boolean
* `groupId` Boolean - Should be specified for `radio` type menu item * `groupId` Integer - Should be specified for `radio` type menu item
* `submenu` Menu - Should be specified for `submenu` type menu item, when * `submenu` Menu - Should be specified for `submenu` type menu item, when
it's specified the `type: 'submenu'` can be omitted for the menu item it's specified the `type: 'submenu'` can be omitted for the menu item

View file

@ -14,7 +14,7 @@ var MenuItem = require('menu-item');
var menu = new Menu(); var menu = new Menu();
menu.append(new MenuItem({ label: 'MenuItem1', click: function() { console.log('item 1 clicked'); } })); menu.append(new MenuItem({ label: 'MenuItem1', click: function() { console.log('item 1 clicked'); } }));
menu.append(new MenuItem({ type: 'separator' })); menu.append(new MenuItem({ type: 'separator' }));
menu.append(new MenuItem({ label: 'MenuItem2', type: 'checkbox', clicked: true })); menu.append(new MenuItem({ label: 'MenuItem2', type: 'checkbox', checked: true }));
window.addEventListener('contextmenu', function (e) { window.addEventListener('contextmenu', function (e) {
e.preventDefault(); e.preventDefault();