Reset MenuManager in AtomEnvironment::reset

This commit is contained in:
Max Brunsfeld
2015-10-08 11:45:04 -07:00
parent 19b07dbd97
commit 9664d34750
3 changed files with 6 additions and 1 deletions

View File

@@ -245,6 +245,8 @@ class AtomEnvironment extends Model
@styles.restoreSnapshot(@initialStyleElements)
@menu.clear()
###
Section: Event Subscription
###

View File

@@ -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.
#