View Full Version : Destroy a view in MVC app - new instance is unresponsive

23 Apr 2013, 8:30 AM
I have an MVC app that has a custom method that destroys a view. That view can later be re-created. The problem is, after destroying the view (simply by calling the destroy method), later when I create a new instance, none of the event handlers work and the view is basically dead (no response to combobox selections, no change event on file upload field, etc.). Am I doing something wrong? I'm stuck in an ExtJS 4.0.5 environment - is this a problem that was fixed in a later release?

23 Apr 2013, 8:46 AM
The problem was in my code - I had a method that was saving a reference to a component within the view (into a property on the method itself), and apparently the methods hang around even after the view is destroyed, so this property was not getting deleted.