rem: for( var i = 0; i < ArrayOfElements.length; i++ ) 
add: for( i = 0; i < ArrayOfElements.length; i++ ) 
context: CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){   if( this.selectedEvents.length > 0 )   {      var ArrayOfElements = document.getElementsByAttribute( "disabledwhennoeventsselected", "true" );      for( var i = 0; i < ArrayOfElements.length; i++ )         ArrayOfElements[i].removeAttribute( "disabled" );            if( this.selectedEvents.length != 1 )         document.getElementById( "modify_command" ).setAttribute( "disabled", "true" );      if (gMailAccounts)      {         document.getElementById("send_event_command").removeAttribute("disabled");      }   }   else   {      var ArrayOfElements = document.getElementsByAttribute( "disabledwhennoeventsselected", "true" );      for( var i = 0; i < ArrayOfElements.length; i++ )         ArrayOfElements[i].setAttribute( "disabled", "true" );   }   for( var index in this.observerList )   {      var observer = this.observerList[ index ];            if( "onSelectionChanged" in observer )      {         observer.onSelectionChanged( this.selectedEvents );      }   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/43af53d38378fb9a505110a2d97a8a77d2e30104/calendarSelection.js/clean/calendar/resources/content/calendarSelection.js