I'm putting together an application where I will be creating and
destroying many menu components, depending on where the user clicks on
the page. All of this will be happening without the browser having to
How can I ensure that all of the components that create and the event
listeners are destroyed properly?
The problem that I am having at the moment, is that the menu and menu
items only respond to events the first time that they are loaded. I am
thinking that this is due to all of the events that I keep registering
for my components.
Any help is appreciated.