projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90600ba
)
Make commandId a read only property
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Wed, 22 Jun 2016 17:07:02 +0000
(10:07 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Wed, 22 Jun 2016 17:07:02 +0000
(10:07 -0700)
lib/browser/api/menu-item.js
patch
|
blob
|
history
diff --git
a/lib/browser/api/menu-item.js
b/lib/browser/api/menu-item.js
index
e1ccda4
..
264be81
100644
(file)
--- a/
lib/browser/api/menu-item.js
+++ b/
lib/browser/api/menu-item.js
@@
-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) => {