rem: gICalLib.addCalendar( calendarNode.getAttribute( "http: 
add: gICalLib.addCalendar( calendarNode.getAttribute( "http: calendarNode.getAttribute( "http: 
context: function switchCalendar( event ){   dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button );   if (event.button != 0)    {      return;   }      //16 is the width of the checkbox   if( ( event.clientX - event.currentTarget.boxObject.x ) > 16 )   {      return;   }      var calendarNode = gCalendarWindow.calendarManager.rdf.getNode( event.currentTarget.getAttribute( "id" ) );   if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "true" )   {      window.setCursor( "wait" );      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" );      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( getAndSetEventTable() );   refreshToDoTree( false );      gCalendarWindow.currentView.refreshEvents();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/98df5c763282c910775b557e0f9de3d746101ff3/calendarManager.js/buggy/calendar/resources/content/calendarManager.js