rem: if( document.getElementById( "event-filter-menulist" ).selectedItem && 
add: if( document.getElementById( "event-filter-menulist" ) && document.getElementById( "event-filter-menulist" ).selectedItem && 
context: CalendarWindow.prototype.setSelectedDate = function calWin_setSelectedDate( date ){   // Copy the date because we might mess with it in place      this.selectedDate = new Date( date );   /* on some machines, we need to check for .selectedItem first */   if( document.getElementById( "event-filter-menulist" ).selectedItem &&       document.getElementById( "event-filter-menulist" ).selectedItem.value == "current" )   {      //redraw the top tree      setTimeout( "refreshEventTree( getAndSetEventTable() );", 150 );   }   document.getElementById( "lefthandcalendar" ).value = date;   //get a list of events for this month.   var monthEventList = this.eventSource.getEventsForMonth( this.getSelectedDate() );   var arrayOfDates = new Array();   for( var eventIndex = 0; eventIndex < monthEventList.length; ++eventIndex )   {      var calendarEventDisplay = monthEventList[ eventIndex ];      var eventDate = new Date( calendarEventDisplay.displayDate );            //add them to an array      arrayOfDates[ eventDate.getDate() ] = true;   }   document.getElementById( "lefthandcalendar" ).setBusyDates( arrayOfDates );   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5f91b748b5f9095381792446f32c2d777a530886/calendarWindow.js/clean/calendar/resources/content/calendarWindow.js