mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	moved tree initialization into the widget
This commit is contained in:
		| @@ -4,10 +4,11 @@ const $contextMenuContainer = $("#context-menu-container"); | ||||
| let dateContextMenuOpenedMs = 0; | ||||
|  | ||||
| /** | ||||
|  * @param {NoteTreeWidget} treeWidget | ||||
|  * @param event - originating click event (used to get coordinates to display menu at position) | ||||
|  * @param {object} contextMenu - needs to have getContextMenuItems() and selectContextMenuItem(e, cmd) | ||||
|  */ | ||||
| async function initContextMenu(event, contextMenu) { | ||||
| async function initContextMenu(treeWidget, event, contextMenu) { | ||||
|     event.stopPropagation(); | ||||
|  | ||||
|     $contextMenuContainer.empty(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user