Make commandId a read only property

This commit is contained in:
Kevin Sawicki 2016-06-22 10:07:02 -07:00
parent 90600ba653
commit ad110fc806

View file

@ -72,7 +72,7 @@ const MenuItem = function (options) {
throw new Error(`Unknown menu item type: ${this.type}`) throw new Error(`Unknown menu item type: ${this.type}`)
} }
this.commandId = ++nextCommandId this.overrideReadOnlyProperty('commandId', ++nextCommandId)
const click = options.click const click = options.click
this.click = (event, focusedWindow) => { this.click = (event, focusedWindow) => {