working note type and note paths widgets

This commit is contained in:
zadam
2020-01-18 19:46:30 +01:00
parent b00a9f4415
commit 493730dff6
9 changed files with 177 additions and 157 deletions

View File

@@ -15,12 +15,16 @@ export default class Component {
const fun = this[name + 'Listener'];
let propagateToChildren = true;
if (typeof fun === 'function') {
await fun.call(this, data);
propagateToChildren = await fun.call(this, data) !== false;
}
for (const child of this.children) {
child.eventReceived(name, data);
if (propagateToChildren) {
for (const child of this.children) {
child.eventReceived(name, data);
}
}
}