mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
pass params in map operator update fn
This commit is contained in:
parent
7a6e91de84
commit
bfdff353b0
@ -32,7 +32,7 @@ export default class MappedList extends BaseObservableList {
|
|||||||
onUpdate(index, value, params) {
|
onUpdate(index, value, params) {
|
||||||
const mappedValue = this._mappedValues[index];
|
const mappedValue = this._mappedValues[index];
|
||||||
if (this._updater) {
|
if (this._updater) {
|
||||||
this._updater(mappedValue, value);
|
this._updater(mappedValue, params, value);
|
||||||
}
|
}
|
||||||
this.emitUpdate(index, mappedValue, params);
|
this.emitUpdate(index, mappedValue, params);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user