rem:  document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode.parentNode.removeChild( document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode );   
add: ThisCalendarObject.remove();  this.rdf.flush(); 
context: calendarManager.prototype.deleteCalendar = function calMan_deleteCalendar( ThisCalendarObject ){   this.removeCalendar( ThisCalendarObject );      //remove it from the array   var index = 0;   for( var i = 0; i < this.calendars.length; i++ )   {      if( this.calendars[i] == ThisCalendarObject )      {         index = i;         break;      }   }   this.calendars.splice( index, 1 );   //remove it from the prefs   this.updateServerArrayText();   //http://lxr.mozilla.org/seamonkey/source/modules/libpref/public/nsIPrefBranch.idl#205   this.CalendarWindow.calendarPreferences.calendarPref.clearUserPref( "server"+ThisCalendarObject.serverNumber+".name" );   this.CalendarWindow.calendarPreferences.calendarPref.clearUserPref( "server"+ThisCalendarObject.serverNumber+".path" );   this.CalendarWindow.calendarPreferences.calendarPref.clearUserPref( "server"+ThisCalendarObject.serverNumber+".remote" );   this.CalendarWindow.calendarPreferences.calendarPref.clearUserPref( "server"+ThisCalendarObject.serverNumber+".remotePath" );   this.CalendarWindow.calendarPreferences.calendarPref.clearUserPref( "server"+ThisCalendarObject.serverNumber+".active" );   //remove the listitem   document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode.parentNode.removeChild( document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode );      //TODO: remove the file completely}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/calendarManager.js/buggy/calendar/resources/content/calendarManager.js