rem: for( i = 0; i < EventSelectionArray.length; i++ ) { gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] ); } 
add: if( EventSelectionArray.length > 0 ) {     setTimeout( "gCalendarWindow.weekView.clearSelectedDate();", 1 );  var i = 0;  for( i = 0; i < EventSelectionArray.length; i++ ) { gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] ); } } else {  gCalendarWindow.weekView.hiliteSelectedDate(); } 
context:       onSelectionChanged : function( EventSelectionArray )      {         for( i = 0; i < EventSelectionArray.length; i++ )         {            gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] );         }      }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d80811ad81b012f0c2816a08064130848a4953e4/weekView.js/buggy/calendar/resources/content/weekView.js