ember-freestyle
ember-freestyle copied to clipboard
Menu doesn't clear between different freestyle-guides
Each freestyle-section
(and subsection) calls registerSection, adding it to the service's list of menu items. But if you have multiple freestyle guides, the menu items persist between guides.
I'm not sure what the right solution is, but one way to fix this is to reset the service's menu
property in the freestyle-guide's willDestroyElement hook.