forked from mystiq/hydrogen-web
avoid using ! in ListView
This commit is contained in:
parent
81ec8dca8c
commit
b71a26b04a
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue