diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 3e4cb5c435..cc8973ebcf 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -366,15 +366,17 @@ removeScrollDownButton: function() { if (this.scrollDownButton) { - this.scrollDownButton.remove(); + var button = this.scrollDownButton; this.scrollDownButton = null; + button.remove(); } }, removeLastSeenIndicator: function() { if (this.lastSeenIndicator) { - this.lastSeenIndicator.remove(); + var indicator = this.lastSeenIndicator; this.lastSeenIndicator = null; + indicator.remove(); } },