mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
make loadList not private when we're going to override it
This commit is contained in:
parent
d34a26f0da
commit
c12300bfa5
@ -43,7 +43,7 @@ export default class ListView {
|
||||
}
|
||||
}
|
||||
this._list = attributes.list;
|
||||
this._loadList();
|
||||
this.loadList();
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ export default class ListView {
|
||||
attr.className = this._className;
|
||||
}
|
||||
this._root = tag.ul(attr);
|
||||
this._loadList();
|
||||
this.loadList();
|
||||
if (this._onItemClick) {
|
||||
this._root.addEventListener("click", this._onClick);
|
||||
}
|
||||
@ -85,7 +85,7 @@ export default class ListView {
|
||||
this._childInstances = null;
|
||||
}
|
||||
|
||||
_loadList() {
|
||||
loadList() {
|
||||
if (!this._list) {
|
||||
return;
|
||||
}
|
||||
|
@ -16,8 +16,8 @@ export default class TimelineList extends ListView {
|
||||
this._atBottom = false;
|
||||
}
|
||||
|
||||
_loadList() {
|
||||
super._loadList();
|
||||
loadList() {
|
||||
super.loadList();
|
||||
const root = this.root();
|
||||
root.scrollTop = root.scrollHeight;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user