mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	fixed switch between autobook and text
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user