by levous » Sun Nov 25, 2007 6:33 am
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;