rem: this.retrieveAndSaveRemoteCalendar( CalendarObject, onResponseAndRefresh );  
context: calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){   CalendarObject.active = true;   CalendarObject.serverNumber = this.nextCalendarNumber;   this.nextCalendarNumber++;   CalendarObject.path = CalendarObject.path.replace( "webcal:", "http:" );   if( CalendarObject.path.indexOf( "http://" ) != -1 )   {      var profileComponent = Components.classes["@mozilla.org/profile/manager;1"].createInstance();            var profileInternal = profileComponent.QueryInterface(Components.interfaces.nsIProfileInternal);       var profileFile = profileInternal.getProfileDir(profileInternal.currentProfile);            profileFile.append("RemoteCalendar"+CalendarObject.serverNumber+".ics");      CalendarObject.remote = true;      CalendarObject.remotePath = CalendarObject.path;      CalendarObject.path = profileFile.path;            this.retrieveAndSaveRemoteCalendar( CalendarObject, onResponseAndRefresh );      dump( "Remote Calendar Number "+CalendarObject.serverNumber+" Added" );   }   else   {      CalendarObject.remote = false;      dump( "Calendar Number "+CalendarObject.serverNumber+" Added" );   }        //add the information to the preferences.   this.CalendarWindow.calendarPreferences.calendarPref.setCharPref( "server"+CalendarObject.serverNumber+".name", CalendarObject.name );   this.CalendarWindow.calendarPreferences.calendarPref.setBoolPref( "server"+CalendarObject.serverNumber+".remote", CalendarObject.remote );   this.CalendarWindow.calendarPreferences.calendarPref.setCharPref( "server"+CalendarObject.serverNumber+".remotePath", CalendarObject.remotePath );   this.CalendarWindow.calendarPreferences.calendarPref.setCharPref( "server"+CalendarObject.serverNumber+".path", CalendarObject.path );   this.CalendarWindow.calendarPreferences.calendarPref.setBoolPref( "server"+CalendarObject.serverNumber+".active", true );   this.CalendarWindow.calendarPreferences.calendarPref.setIntPref(  "servers.count", (parseInt( CalendarObject.serverNumber )+1) );      //add this to the global calendars array   this.calendars[ this.calendars.length ] = CalendarObject;   this.updateServerArrayText();   this.addCalendarToListBox( CalendarObject );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/777703fb0d78eb975f3bfdc7344ca5c0a4d58a7d/calendarManager.js/buggy/calendar/resources/content/calendarManager.js