I have several views. In some of them I have the similar events like
events: {
'click #save': 'save'
}
When I create and render new view old event listening remains so old algorythm still works when I already change the view.
As I know there is a stopListening() function but how can I activate for all previous views. So when I change the view/page I want disable all previous events. How I can do that?
Aucun commentaire:
Enregistrer un commentaire