No need to manually remove. Gets done in the OrderedListView

This commit is contained in:
JC Brand 2018-01-06 20:36:22 +00:00
parent fc631e7f8c
commit a91e9216e6
3 changed files with 0 additions and 7 deletions

View File

@ -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 &&

View File

@ -2196,7 +2196,6 @@
tagName: 'li',
initialize () {
this.model.on('change', this.render, this);
this.model.on('destroy', this.destroy, this);
},
toHTML () {

View File

@ -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);
}