mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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._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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user