mirror of
https://github.com/atom/atom.git
synced 2026-01-28 16:28:09 -05:00
minor changes
This commit is contained in:
@@ -34,7 +34,7 @@ class ContextMenuManager
|
||||
add: (name, object, {devMode}={}) ->
|
||||
for selector, items of object
|
||||
for label, commandOrSubmenu of items
|
||||
if (typeof commandOrSubmenu == 'object')
|
||||
if typeof commandOrSubmenu is 'object'
|
||||
@addBySelector(selector, commandOrSubmenu, {devMode})
|
||||
else
|
||||
@addBySelector(selector, {label, commandOrSubmenu}, {devMode})
|
||||
|
||||
Reference in New Issue
Block a user