const $contextMenuContainer = $("#context-menu-container"); function initContextMenu(event, contextMenuItems, selectContextMenuItem) { $contextMenuContainer.empty(); for (const item of contextMenuItems) { if (item.title === '----') { $contextMenuContainer.append($("