mirror of
https://github.com/atom/atom.git
synced 2026-02-05 12:15:07 -05:00
📝 Update docs
This commit is contained in:
@@ -35,6 +35,9 @@ class MenuManager
|
||||
# * `submenu` An optional {Array} of sub menu items.
|
||||
# * `command` An optional {String} command to trigger when the item is
|
||||
# clicked.
|
||||
#
|
||||
# Returns a {Disposable} on which `.dispose()` can be called to remove the
|
||||
# added menu items.
|
||||
add: (items) ->
|
||||
@merge(@template, item) for item in items
|
||||
@update()
|
||||
|
||||
Reference in New Issue
Block a user