Commit 51e0d9d
committed
refactor: remove redundant map lookups in
perf: avoid double map lookup in Menu.prototype._shouldCommandIdWorkWhenHidden
perf: avoid double map lookup in Menu.prototype._isCommandIdVisible
perf: avoid double map lookup in Menu.prototype._shouldRegisterAcceleratorForCommandId
perf: avoid double map lookup in Menu.prototype._getSharingItemForCommandIdbrowser/api/menu.ts (electron#48706)1 parent 7a87603 commit 51e0d9d
File tree
1 file changed
+4
-4
lines changed- lib/browser/api
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments