rem: var oldDate = this.calendarWindow.selectedDate; 
add: var oldDate = this.calendarWindow.getSelectedDate(); 
context: CalendarView.prototype.goToDay = function calView_goToDay( newDate, ShowEvent ){   var oldDate = this.calendarWindow.selectedDate;      this.calendarWindow.setSelectedDate( newDate );       switch( this.calendarWindow.currentView )   {      case this.calendarWindow.monthView:         if( newDate.getFullYear() != oldDate.getFullYear() ||             newDate.getMonth() != oldDate.getMonth() )         {            this.refresh( ShowEvent )         }         break;         case this.calendarWindow.weekView:      case this.calendarWindow.dayView:         if( newDate.getFullYear() != oldDate.getFullYear() ||             newDate.getMonth() != oldDate.getMonth() ||             newDate.getDate() != oldDate.getDate() )         {            this.refresh( ShowEvent )         }         break;   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3a33ed5d8b1859d8a6029a28ef0b6e8fa76ffdb4/calendarWindow.js/clean/calendar/resources/content/calendarWindow.js