I'm looking at https://demos.telerik.com/kendo-ui/menu/context-menu and have a question about this piece of code:
var
menu = $(
"#menu"
),
original = menu.clone(
true
);
original.find(
".k-state-active"
).removeClass(
"k-state-active"
);
$(
"#apply"
).click(
function
(e) {
e.preventDefault();
var
clone = original.clone(
true
);
menu.getKendoContextMenu().destroy();
clone.appendTo(
"#example"
);
initMenu();
});
It clones the menu, it removes the active selection marker from any selected elements and then attaches a click event to all elements with Id = "apply".
But there are no apply elements in the code sample? And running this from the dojo with that code commented out seems to yield the same result.
Is it an example of how to handle context menus on other elements I might choose to put on that page? (but also for left-click though..?)