var CheckboxView = Backbone.View.extend({
tagName:'div',
template: _.template(item_temp,{}),
events:{
'click .checkoff_friend':'toggleCheckFriend',
},
initialize: function(){
},
render:function(){
},
toggleCheckFriend:function(){
//destroy this View instance.
}
});
var cv = new CheckboxView();
¿Cómo destruyo la instancia? Cuando el alternar está activado, quiero que la instancia de esa vista desaparezca para siempre.¿Cómo destruyo esta instancia de Backbone.js View?
interesante, ... – Sander