extjs - How to cleanup controller and views when a tab closes -


in application have main controller driving series of tab opening. each new tab created new controller created driving view represented tab. there 1 more view connected same controller, should not matter in opinion. well, tabs closable, , when tab closes want destroy controller instance too. how can reasch controller? storing somewhere in main controller violates statement controller should not have state, storing reference of in view make not sense since can have more view related controller. how mantain proper control/ views association map?

well answering own question clarify. since controller must stateless, single instance obtained application.getcontroller('controllername') enough control all tabs, there not reason cleanup controller. fault using ext.create() create controllers, wrong in case, , always.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -