Posted:
Wed Mar 14, 2007 12:48 pm
by Batalf
Hi
Sorry about my late reply.
Can you show me the HTML for your tree? , i.e. the <ul><li> list.
I haven't been able to reproduce it locally, so I suspect it may have something to do with the structure of that tree.
Posted:
Sun Nov 25, 2007 6:33 am
by levous
Line 384 in context-manu.js uses:
for(var no in this.menuItems)
most modern js libraries (such as prototype or mootools) add helper functions to Array so "for var in x" will loop these functions as well (the source of the "undefined" menu items).
stefan_i's suggestion should work fine (but should it be a zero based loop?)
Otherwise, I added to line 384:
for(var no in this.menuItems){ // Looping through menu items
// make sure obj member is a menu item
if(typeof(this.menuItems[no]['itemText'])=='undefined')continue;