comment how updates should work

This commit is contained in:
Bruno Windels 2019-03-15 20:29:17 +01:00
parent 2cd9c2344e
commit 61804073e2

View file

@ -1,5 +1,8 @@
import BaseObservableMap from "./BaseObservableMap.js"; import BaseObservableMap from "./BaseObservableMap.js";
/*
so a mapped value can emit updates on it's own with this._updater that is passed in the mapping function
how should the mapped value be notified of an update though? and can it then decide to not propagate the update?
*/
export default class MappedMap extends BaseObservableMap { export default class MappedMap extends BaseObservableMap {
constructor(source, mapper) { constructor(source, mapper) {
super(); super();