From 529dcb5a97c7cf90f54b2d8c1811d3f97dd3835b Mon Sep 17 00:00:00 2001 From: neur0hak Date: Wed, 6 Nov 2019 01:02:42 +0900 Subject: [PATCH] Update MessagePanelView.js --- lib/MessagePanelView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MessagePanelView.js b/lib/MessagePanelView.js index 6b8a892..d300d10 100644 --- a/lib/MessagePanelView.js +++ b/lib/MessagePanelView.js @@ -186,7 +186,8 @@ MessagePanelView.prototype.clear = function () { MessagePanelView.prototype.remove = function (index) { this.messages.splice(-index, 1); - this.body.children()[index].remove(); + // fix this issue https://github.com/rgbkrk/atom-script/issues/1984 + this.body.children().remove(index); }; MessagePanelView.prototype.add = function (view) {