forked from mystiq/hydrogen-web
make loadList not private when we're going to override it
This commit is contained in:
parent
d34a26f0da
commit
c12300bfa5
2 changed files with 5 additions and 5 deletions
|
@ -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 a new issue