@@ -386,10 +386,6 @@
});
_converse.BookmarkView = Backbone.VDOMView.extend({
- initialize () {
- this.model.on('destroy', this.remove.bind(this));
- },
-
toHTML () {
return tpl_bookmark({
'hidden': _converse.hide_open_bookmarks &&
@@ -2196,7 +2196,6 @@
tagName: 'li',
initialize () {
this.model.on('change', this.render, this);
- this.model.on('destroy', this.destroy, this);
},
@@ -609,8 +609,6 @@
onRemove (contact) {
- this.get(contact.get('id')).remove();
- this.remove(contact.get('id'));
if (this.model.contacts.length === 0) {
this.el.parentElement.removeChild(this.el);
}