I have a view (say ViewA) containing Ext.tab.Panel, where each tab contains a different linked view (say LinkedView1, LinkedView2, LinkedView3).
Each of the linked views monitors a global event, by setting it's ViewController's "listen" config as following:
{
global: {
myEventName: 'onMyEventName'
}
}
Everything is fine and while ViewA is active, each linked view properly receives it's event.
After ViewA is destroyed (by calling "removeAll()" of the "canvas" element of our app's initialView) and another view is created and added to the "canvas", the listener functions of ViewA's linked views are still catching their respective events.
What should we probably do?
We've tried calling "clearListeners" in the "beforeDestroy" event of each of the linked views, but this was of no help.
Thanks in advance!
Best regards,
Ilia.
Ext.tab.Panel linked view not completely destroyed
Aucun commentaire:
Enregistrer un commentaire