rem: refreshEventTree( false ); 
add: refreshEventTree( getAndSetEventTable() ); 
context: function switchCalendar( event ){   dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button );   if (event.button != 0)    {      return;   }      var calendarNode = gCalendarWindow.calendarManager.rdf.getNode( event.currentTarget.getAttribute( "id" ) );   if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "true" )   {      window.setCursor( "wait" );      gCalendarWindow.eventSource.gICalLib.addCalendar( calendarNode.getAttribute( "http://home.netscape.com/NC-rdf#path" ) );            window.setCursor( "default" );            calendarNode.setAttribute( "http://home.netscape.com/NC-rdf#active", "true" );            event.currentTarget.childNodes[0].setAttribute( "checked", "true" );   }   else   {      window.setCursor( "wait" );      gCalendarWindow.eventSource.gICalLib.removeCalendar( calendarNode.getAttribute( "http://home.netscape.com/NC-rdf#path" ) );            window.setCursor( "default" );            calendarNode.setAttribute( "http://home.netscape.com/NC-rdf#active", "false" );            event.currentTarget.childNodes[0].removeAttribute( "checked" );   }         gCalendarWindow.calendarManager.rdf.flush();   refreshEventTree( false );   refreshToDoTree( false );      gCalendarWindow.currentView.refreshEvents();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/09cbe4e3f29b2ba9c29d46bd7f77cd92d26329dd/calendarManager.js/clean/calendar/resources/content/calendarManager.js