I don't know if this is something new to ext 4 or if it was always there, but I just discovered that listeners set by components don't get unsetted after the component is destroyed.
This is particulary painfull for stores. If you have a component that extends from window, and there you set for example a load event on a store, when the window gets destroyed, the event on the store is still there and it keeps firing, so you have to manually detach the event on the component destroy event.
Maybe the problem comes when I use the Ext.StoreManager.lookup, because it always returns the same instance of the store (so it maintains all the events). Should I use Ext.create(nameOfTheStore) instead? If I do that, will the store get destroyed when the window gets destroyed?
Thanks in advance!