rem:    var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"] .createInstance(Components.interfaces.nsISupportsInterfacePointer); sip.data = aCalendar; sip.dataIID = Components.interfaces.calICalendar;  boxobj.rowCountChanged(getCalendars().indexOf(sip.data), 1); 
add: boxobj.rowCountChanged(getIndexForCalendar(aCalendar), 1); 
context: function addCalendarToTree(aCalendar){    var boxobj = document.getElementById("calendarTree").treeBoxObject;    // Special trick to compare interface pointers, since normal, ==    // comparison can fail due to javascript wrapping.    var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"]                         .createInstance(Components.interfaces.nsISupportsInterfacePointer);    sip.data = aCalendar;    sip.dataIID = Components.interfaces.calICalendar;    boxobj.rowCountChanged(getCalendars().indexOf(sip.data), 1);    if (!gCachedStyleSheet) {        gCachedStyleSheet = getStyleSheet("chrome://calendar/content/calendar-view-bindings.css");    }    updateStyleSheetForObject(aCalendar, gCachedStyleSheet);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/619aa1670bc48289ef248d80f1abb1907ee1ee2b/calendar-management.js/buggy/calendar/lightning/content/calendar-management.js