Last seen indicator/scroll down button - defensive removal

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-07-18 13:54:57 -07:00
parent 4f90cefd4f
commit b985228160

View file

@ -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();
}
},