I would like to know the inbuilt standards in puremvc to remove event listeners and unwatch the binding on all mediators, proxies and views which are not going to be in use any more coz of switch of views in the app.
Who should initiate the remove event listeners - obviously the event which switches the view. But where should this code sit... in a mediator?
There are multiple mediators involved and should we call a method removeEventListeners on all these mediators, which inturn should remove event listeners on their respective views and proxies.
Help appreciated. Thanks!