rem: var cal = getCalendars()[row]; 
add: var cal = gCalendars[row]; 
context:     onDoubleClick: function(event)    {        // We only care about left-clicks        if (event.button != 0)             return;        // Find the row clicked on        var tree = document.getElementById("agenda-tree");        var row = tree.treeBoxObject.getRowAt(event.clientX, event.clientY);        // If we clicked on a calendar, edit it, otherwise create a new one        var cal = getCalendars()[row];        if (!cal) {            ltnNewCalendar();        } else {            ltnEditCalendarProperties(cal);        }    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/2289d8bc143211c25fb37aa74324ecdf1bc8296e/calendar-management.js/clean/calendar/lightning/content/calendar-management.js