Commit a91e9216 authored by JC Brand's avatar JC Brand

No need to manually remove. Gets done in the OrderedListView

parent fc631e7f
......@@ -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);
},
toHTML () {
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment