make loadList not private when we're going to override it

This commit is contained in:
Bruno Windels 2019-06-16 17:28:51 +02:00
parent d34a26f0da
commit c12300bfa5
2 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ export default class ListView {
} }
} }
this._list = attributes.list; this._list = attributes.list;
this._loadList(); this.loadList();
} }
} }
@ -53,7 +53,7 @@ export default class ListView {
attr.className = this._className; attr.className = this._className;
} }
this._root = tag.ul(attr); this._root = tag.ul(attr);
this._loadList(); this.loadList();
if (this._onItemClick) { if (this._onItemClick) {
this._root.addEventListener("click", this._onClick); this._root.addEventListener("click", this._onClick);
} }
@ -85,7 +85,7 @@ export default class ListView {
this._childInstances = null; this._childInstances = null;
} }
_loadList() { loadList() {
if (!this._list) { if (!this._list) {
return; return;
} }

View File

@ -16,8 +16,8 @@ export default class TimelineList extends ListView {
this._atBottom = false; this._atBottom = false;
} }
_loadList() { loadList() {
super._loadList(); super.loadList();
const root = this.root(); const root = this.root();
root.scrollTop = root.scrollHeight; root.scrollTop = root.scrollHeight;
} }