I have a div with id #content in which I render a view (view.el: "#content") with a model.
In this view I have an event ("click #save": "save").
When I override the view (= I render the same view on a new model, for example) the save event fires twice.
This happens because the this.undelegateEvents(); method unbinds events using the cid and every new view has a different cid.
How can I fix it?
Before you instantiate a new view, you will need to call
undelegateEventson the old view.