rem: var newDate = this.calendarWindow.getSelectedDate();  newDate.setDate( dayBoxItem.dayNumber );  this.calendarWindow.setSelectedDate( newDate ); 
add: this.calendarWindow.setSelectedDate( dayBoxItem.date ); 
context: MonthView.prototype.clickDay = function monthView_clickDay( event ){   if( event.button > 0 )      return;     var dayBoxItem = event.currentTarget;      if( dayBoxItem.dayNumber != null && event.detail == 1 )   {      // turn off showingLastDay - see notes in MonthView class      this.showingLastDay = false;         // change the selected date and redraw it      var newDate = this.calendarWindow.getSelectedDate();      newDate.setDate( dayBoxItem.dayNumber );            this.calendarWindow.setSelectedDate( newDate );      //changing the selection will redraw the day as selected (colored blue) in the month view.      //therefor, this has to happen after setSelectedDate      gCalendarWindow.EventSelection.emptySelection();   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/235c23f4c260a3b352bcb75cc04b9fb132f9e921/monthView.js/clean/calendar/resources/content/monthView.js