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

View File

@ -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);
} }