mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
avoid using ! in ListView
This commit is contained in:
parent
81ec8dca8c
commit
b71a26b04a
@ -79,12 +79,12 @@ export class ListView<T, V extends UIView> implements UIView {
|
|||||||
if (this._className) {
|
if (this._className) {
|
||||||
attr.className = this._className;
|
attr.className = this._className;
|
||||||
}
|
}
|
||||||
this._root = el(this._tagName, attr);
|
const root = this._root = el(this._tagName, attr);
|
||||||
this.loadList();
|
this.loadList();
|
||||||
if (this._onItemClick) {
|
if (this._onItemClick) {
|
||||||
this._root!.addEventListener("click", this);
|
root.addEventListener("click", this);
|
||||||
}
|
}
|
||||||
return this._root!;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEvent(evt: Event) {
|
handleEvent(evt: Event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user