rem:  this.addActiveCalendars(); 
add: var profileFile = this.getProfileDirectory();  profileFile.append("Calendar"); profileFile.append("CalendarManager.rdf");  this.rdf = new RDFFile( profileFile.path, null);  /* make sure we have a root node, if not we probably have an empty file */ if( this.rdf.getRootContainers().length == 0 ) { this.rootContainer = this.rdf.addRootSeq( "urn:calendarcontainer" );   var profileFile = this.getProfileDirectory(); profileFile.append("Calendar"); profileFile.append("CalendarDataFile.ics");  var node = this.rootContainer.addNode( "calendar0" );  node.setAttribute( "http: node.setAttribute( "http: node.setAttribute( "http: node.setAttribute( "http: node.setAttribute( "http: } else { this.rootContainer = this.rdf.getRootContainers("seq")[0]; }  this.rdf.flush();  this.getAndConvertAllOldCalendars();  document.getElementById( "list-calendars-listbox" ).database.AddDataSource( this.rdf.getDatasource() );  document.getElementById( "list-calendars-listbox" ).builder.rebuild();  /* add active calendars */ for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubNodes()[i].getAttribute( "http: { this.addCalendar( this.rootContainer.getSubNodes()[i] ); } }  /* Refresh remote calendars */ /* var RefreshServers = getBoolPref(this.CalendarWindow.calendarPreferences.calendarPref, "servers.reloadonlaunch", false );  if( RefreshServers == true ) this.refreshAllRemoteCalendars( ); */ 
context: function calendarManager( CalendarWindow ){   this.nextCalendarNumber = 1;   this.CalendarWindow = CalendarWindow;   this.calendars = new Array();   this.getAllCalendars();   for( var i = 0; i < this.calendars.length; i++ )   {      this.addCalendarToListBox( this.calendars[i] );   }   //if the calendars are being used, add them.   this.addActiveCalendars();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/calendarManager.js/buggy/calendar/resources/content/calendarManager.js