fixed switch between autobook and text

This commit is contained in:
zadam
2020-02-02 11:44:08 +01:00
parent 34150e7177
commit 27ab55d26a
22 changed files with 3311 additions and 805 deletions

View File

@@ -19,10 +19,18 @@ export default class Component {
let propagateToChildren = true;
const start = Date.now();
if (typeof fun === 'function') {
propagateToChildren = await fun.call(this, data) !== false;
}
const end = Date.now();
if (end - start > 10) {
console.log(`Event ${name} in component ${this.componentId} took ${end-start}ms`);
}
if (propagateToChildren) {
const promise = this.triggerChildren(name, data, sync);