mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Reset MenuManager in AtomEnvironment::reset
This commit is contained in:
@@ -245,6 +245,8 @@ class AtomEnvironment extends Model
|
||||
|
||||
@styles.restoreSnapshot(@initialStyleElements)
|
||||
|
||||
@menu.clear()
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
###
|
||||
|
||||
@@ -96,6 +96,10 @@ class MenuManager
|
||||
@unmerge(@template, item) for item in items
|
||||
@update()
|
||||
|
||||
clear: ->
|
||||
@template = []
|
||||
@update()
|
||||
|
||||
# Should the binding for the given selector be included in the menu
|
||||
# commands.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user