1
0
mirror of https://github.com/vector-im/hydrogen-web.git synced 2025-01-11 04:27:40 +01:00

pass params in map operator update fn

This commit is contained in:
Bruno Windels 2019-07-29 19:52:28 +02:00
parent 7a6e91de84
commit bfdff353b0

@ -32,7 +32,7 @@ export default class MappedList extends BaseObservableList {
onUpdate(index, value, params) {
const mappedValue = this._mappedValues[index];
if (this._updater) {
this._updater(mappedValue, value);
this._updater(mappedValue, params, value);
}
this.emitUpdate(index, mappedValue, params);
}