mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
Make commandId a read only property
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user