Make commandId a read only property
This commit is contained in:
parent
90600ba653
commit
ad110fc806
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ const MenuItem = function (options) {
|
|||
throw new Error(`Unknown menu item type: ${this.type}`)
|
||||
}
|
||||
|
||||
this.commandId = ++nextCommandId
|
||||
this.overrideReadOnlyProperty('commandId', ++nextCommandId)
|
||||
|
||||
const click = options.click
|
||||
this.click = (event, focusedWindow) => {
|
||||
|
|
Loading…
Reference in a new issue