I am using a menu, some times when I click on a menu Item. I get javascript exception “undefined is not a function”.
- Why do I get this?
- Do I need to update to a newer version of webix?
I get this error 5 out of 10 times. I need this function very badly in my program. Please help me!!!
This is my code:
view: "menu",
id:"menu123",
css:"header_left",
data: menuData,
borderless: true,
$css: "globalMenu",
openAction: "click",
on: {
onMenuItemClick: function(id) {
try {
List.Controller.handleItemClick($$('menu123').getMenuItem(id));
} catch(err) {}
}
}