add:   var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"] .createInstance(Components.interfaces.nsISupportsInterfacePointer); sip.data = aCalendar; sip.dataIID = Components.interfaces.calICalendar; 
context: function addCalendarToTree(aCalendar){    var boxobj = document.getElementById("calendarTree").treeBoxObject;    // XXXdmose in theory, we should be able to do something along the lines    //    // var calendarRow = getCalendars().indexOf(aCalendar);    // boxobj.rowCountChanged(calendarRow, 1);    //    // Unfortunately, the indexOf in that statement will currently fail    // since it's not possible to compare "interface pointers" for identity    // because of XPConnect wrapping vagaries.  Bug 325650 covers fixing    // this the right way.  But for now...    // trigger tree redraw by signalizing that a line was added at the top of    // the list    // a perfect solution would just invalidate the affected lines    boxobj.rowCountChanged(0, 1);        // as this might lead to situations where nothing has to be changed visually    // the whole view should be invalidated (note that we're pretending to    // change line 0 only)    boxobj.invalidate();        updateStyleSheetForCalendar(aCalendar);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/515f77e326574966a274896f7230c1dda51416b8/calendar-management.js/clean/calendar/lightning/content/calendar-management.js