simplification of sync event API

This commit is contained in:
zadam
2020-02-12 20:31:31 +01:00
parent 81a54cd4a0
commit 25553c9e67
5 changed files with 23 additions and 29 deletions

View File

@@ -16,12 +16,12 @@ export default class TabCachingWidget extends TabAwareWidget {
return this.$widget = $(`<div class="marker" style="display: none;">`);
}
activeTabChangedListener(param) {
super.activeTabChangedListener(param);
async triggerChildren(name, data) {
// stop propagation of the event to the children, individual tab widget should not know about tab switching
// since they are per-tab
return false;
if (name !== 'activeTabChanged') {
super.triggerChildren(name, data);
}
}
refreshWithNote() {