Bug in treeView _oncontextmenu event

Post bugs here!

Bug in treeView _oncontextmenu event

Postby joedarock » Tue Sep 13, 2016 2:34 pm

Event code:
_treeview_oncontextmenu:function (profile, e, src, item){
var ns = this, uictrl = profile.boxing();
alert(item.id);
var myNodeName = item.id;
alert(myNodeName);
}

Both alerts display the correct value, then an error is generated:
"Uncaught TypeError: Cannot read property 'id' of undefined VM73 index.js?rand=1473776949886:1411"

I don't have this problem using the 'item' variable in other events, just in the _oncontectmenu event.
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: Bug in treeView _oncontextmenu event

Postby support » Wed Sep 14, 2016 12:33 am

javascript code
_treeview_oncontextmenu:function (profile, e, src, item){
if(item){
var ns = this, uictrl = profile.boxing();
alert(item.id);
var myNodeName = item.id;
alert(myNodeName);
}
}
support
 
Posts: 350
Joined: Sat Apr 27, 2013 9:22 am


Return to Bug Report

Who is online

Users browsing this forum: No registered users and 0 guests

cron