rem:  updateStyleSheetForCalendar(aCalendar); 
add:  if (!gCachedStyleSheet) { gCachedStyleSheet = getStyleSheet("chrome: } alert("1"+gCachedStyleSheet); updateStyleSheetForObject(aCalendar, gCachedStyleSheet); 
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);        updateStyleSheetForCalendar(aCalendar);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/50998de9c172972637ba79072828269c8c9d9c49/calendar-management.js/buggy/calendar/lightning/content/calendar-management.js