rem:    boxobj.rowCountChanged(0, 1);     boxobj.invalidate(); 
add: boxobj.rowCountChanged(getCalendars().indexOf(sip.data), 1); 
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e2441ea1c3c01f2993005f0263a545f8b05ff767/calendar-management.js/clean/calendar/lightning/content/calendar-management.js