forked from mystiq/hydrogen-web
pass event to item clicked handler
This commit is contained in:
parent
16d5c3279c
commit
7903ae0001
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ export default class ListView {
|
|||
}
|
||||
const index = Array.prototype.indexOf.call(this._root.childNodes, childNode);
|
||||
const childView = this._childInstances[index];
|
||||
this._onItemClick(childView);
|
||||
this._onItemClick(childView, event);
|
||||
}
|
||||
|
||||
_unloadList() {
|
||||
|
|
|
@ -23,7 +23,7 @@ export default class SessionView {
|
|||
this._roomList = new ListView(
|
||||
{
|
||||
list: this._viewModel.roomList,
|
||||
onItemClick: roomTile => roomTile.clicked()
|
||||
onItemClick: (roomTile, event) => roomTile.clicked(event)
|
||||
},
|
||||
(room) => new RoomTile(room)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue