rem: } else { 
add: } else { 
context: function WeekView( calendarWindow ){   // call super       this.superConstructor( calendarWindow );      //set the time on the left hand side labels   //need to do this in JavaScript to preserve formatting   for( var i = 0; i < 24; i++ )   {      /*      ** FOR SOME REASON, THIS IS NOT WORKING FOR MIDNIGHT      */       var TimeToFormat = new Date();      TimeToFormat.setHours( i );      TimeToFormat.setMinutes( "0" );      var FormattedTime = calendarWindow.dateFormater.getFormatedTime( TimeToFormat );      var Label = document.getElementById( "week-view-hour-"+i );            Label.setAttribute( "value", FormattedTime );   }      // get week view header items      gHeaderDateItemArray = new Array();      for( var dayIndex = 1; dayIndex <= 7; ++dayIndex )   {      var headerDateItem = document.getElementById( "week-header-date-" + dayIndex );            gHeaderDateItemArray[ dayIndex ] = headerDateItem;   }   var weekViewEventSelectionObserver =    {      onSelectionChanged : function( EventSelectionArray )      {          if( EventSelectionArray.length > 0 )          {             //if there are selected events.             //for some reason, this function causes the tree to go into a select / unselect loop             //putting it in a settimeout fixes this.             setTimeout( "gCalendarWindow.weekView.clearSelectedDate();", 1 );             var i = 0;             for( i = 0; i < EventSelectionArray.length; i++ )             {                 gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] );             }          }          else          {             //select the proper day             gCalendarWindow.weekView.hiliteSelectedDate();          }      }   }         calendarWindow.EventSelection.addObserver( weekViewEventSelectionObserver );}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/c9df57f0cb2a1858b0cca4b4a1f8672cd6d76ef2/weekView.js/buggy/calendar/resources/content/weekView.js