rem: this.addCalendar( this.rootContainer.getSubNodes()[i] ); } 
add: this.addCalendar( Calendar ); }  autoreload = Calendar.getAttribute( "http: if ( autoreload > 0 ) { function closure( ThisObject,ThisCalendar ) { function autoreloadCmd(){ if( ThisCalendar.getAttribute( "http: ThisObject.reloadCalendar( ThisCalendar ); } } return autoreloadCmd; } var X = closure( this, Calendar ); var serverNumber = Calendar.getAttribute( "http: gAutoreloadTimerId[serverNumber] = setInterval( X, autoreload ); } 
context: function calendarManager( CalendarWindow ){   this.CalendarWindow = CalendarWindow;   /* We need a Calendar directory in our profile directory */   var CalendarDirectory = new File( this.getProfileDirectory().path );   CalendarDirectory.append( "Calendar" );      /* make sure the calendar directory exists, create it if it doesn't */   if( !CalendarDirectory.exists() )   {      var thisDir = new Dir( CalendarDirectory.path );      thisDir.create();   }   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" );      //add the default calendar      profileFile = this.getProfileDirectory();      profileFile.append("Calendar");      profileFile.append("CalendarDataFile.ics");                               var node = this.rootContainer.addNode( "calendar0" );         node.setAttribute( "http://home.netscape.com/NC-rdf#name", defaultCalendarFileName );      node.setAttribute( "http://home.netscape.com/NC-rdf#path", profileFile.path );      node.setAttribute( "http://home.netscape.com/NC-rdf#active", "true" );      node.setAttribute( "http://home.netscape.com/NC-rdf#remote", "false" );      node.setAttribute( "http://home.netscape.com/NC-rdf#remotePath", "" );      node.setAttribute( "http://home.netscape.com/NC-rdf#color", "#F9F4FF"); //default color   }   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://home.netscape.com/NC-rdf#active" ) == "true" )      {         this.addCalendar( this.rootContainer.getSubNodes()[i] );      }                   }      /* Refresh remote calendars */   var RefreshServers = getBoolPref(this.CalendarWindow.calendarPreferences.calendarPref, "servers.reloadonlaunch", gCalendarBundle.getString("reloadServersOnLaunch" ) );      if( RefreshServers == true )      this.refreshAllRemoteCalendars( );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d1547f1bc4b4ca00d034a2f99d0fda7436932254/calendarManager.js/buggy/calendar/resources/content/calendarManager.js