How to Delete controller ExtJS?
问题 I dynamically create controllers in my application like this: var loadedController = me.app.getController(controller_name); loadedController.init(); How can I delete this controller after using? Thanks. 回答1: ExtJs currently does not support removal of controllers out of the box. To cleanup a controller, do the following: Extend Ext.app.EventBus with a method uncontrol that unregisters all event listeners that this controller registered on the EventBus. Check out the source of Ext.app.EventBus