client/models: fix notifying about list changes

This commit is contained in:
rr- 2016-08-08 17:45:57 +02:00
parent 46435182f6
commit 059bac877b

View file

@ -17,7 +17,7 @@ class AbstractList extends events.EventTarget {
ret.remove(addedItem);
});
addedItem.addEventListener('change', e => {
this.dispatchEvent(new CustomEvent('change', {
ret.dispatchEvent(new CustomEvent('change', {
detail: e.detail,
}));
});