Skip to content

Commit

Permalink
Update MessagePanelView.js
Browse files Browse the repository at this point in the history
  • Loading branch information
neur0hak authored Nov 5, 2019
1 parent c17eb7e commit 529dcb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MessagePanelView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 529dcb5

@pensierinmusica
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work, because when you close the window then you can't open it again.

References atom-community/atom-script#2006

Please sign in to comment.