finish standardizing!

This commit is contained in:
Zeke Sikelianos 2016-03-28 18:00:30 -07:00 committed by Kevin Sawicki
parent 4e2f1311e0
commit 42e7ee2b4a
6 changed files with 22 additions and 13 deletions

View file

@ -29,7 +29,18 @@ MenuItem = (function () {
function MenuItem (options) {
var click, ref
const Menu = require('electron').Menu
click = options.click, this.selector = options.selector, this.type = options.type, this.role = options.role, this.label = options.label, this.sublabel = options.sublabel, this.accelerator = options.accelerator, this.icon = options.icon, this.enabled = options.enabled, this.visible = options.visible, this.checked = options.checked, this.submenu = options.submenu
click = options.click
this.selector = options.selector
this.type = options.type
this.role = options.role
this.label = options.label
this.sublabel = options.sublabel
this.accelerator = options.accelerator
this.icon = options.icon
this.enabled = options.enabled
this.visible = options.visible
this.checked = options.checked
this.submenu = options.submenu
if ((this.submenu != null) && this.submenu.constructor !== Menu) {
this.submenu = Menu.buildFromTemplate(this.submenu)
}