Commit 30a6e6cb authored by JC Brand's avatar JC Brand

Remove redundant function wrapping

parent 7ff99a50
......@@ -2666,8 +2666,7 @@
if (ev && ev.preventDefault) {
ev.preventDefault();
}
ev.preventDefault();
this.$el.remove();
this.remove();
this.model.destroy();
converse.emit('onChatBoxClosed', this);
return this;
......@@ -2699,12 +2698,8 @@
this.addChat(item);
}
}, this);
this.model.on("destroy", function (item) {
this.removeChat(item);
}, this);
this.model.on("change:minimized", function (item) {
this.onChanged(item);
}, this);
this.model.on("destroy", this.removeChat, this);
this.model.on("change:minimized", this.onChanged, this);
},
render: function () {
......
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