rem: for ( j = 0; j < EventBoxes.length; j++ ) 
add: for ( var j = 0; j < EventBoxes.length; j++ ) 
context:       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.monthView.clearSelectedDate();", 1 );            gCalendarWindow.monthView.clearSelectedBoxes();                        var i = 0;                        for( i = 0; i < EventSelectionArray.length; i++ )            {               var EventBoxes = document.getElementsByAttribute( "name", "month-view-event-box-"+EventSelectionArray[i].id );               for ( j = 0; j < EventBoxes.length; j++ )                {                  EventBoxes[j].setAttribute( "eventselected", "true" );               }            }         }         else         {            //select the proper day            gCalendarWindow.monthView.hiliteSelectedDate();         }      }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/43af53d38378fb9a505110a2d97a8a77d2e30104/monthView.js/buggy/calendar/resources/content/monthView.js