rem: var eventBoxList = document.getElementsByAttribute( "eventbox", "dayview" ); var eventBox; 
context: DayView.prototype.refreshEvents = function dayview_refreshEvents( ) {   this.kungFooDeathGripOnEventBoxes = new Array();      var dayEventList = gEventSource.getEventsForDay( this.calendarWindow.getSelectedDate() );   var allDayEvents = new Array();   var normalEvents = new Array();   var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");      // DOM elements   var collapsibleBox = document.getElementById( "all-day-collapsible-box" );   var allDayBox = document.getElementById( "all-day-content-box" );   var allDayLabel = document.getElementById( "all-day-content-title" );   var dayViewContent = document.getElementById( "day-view-content-box" );   var eventBoxList = document.getElementsByAttribute( "eventbox", "dayview" );   var eventBox;      //remove all the all day row -boxes from the all day content box.   while( allDayBox.hasChildNodes() )      allDayBox.removeChild( allDayBox.firstChild );      // remove eventboxes   while (eventBoxList.item(0)) {      eventBox = eventBoxList[0];      eventBox.parentNode.removeChild( eventBox );   }      // set view limits for the day   var limits = this.getViewLimits(dayEventList,this.calendarWindow.getSelectedDate());   for( i = 0; i < 24; i++ ) {      if( ( i < limits.startHour ) || ( i > limits.endHour ) )         document.getElementById( "day-tree-item-"+i ).setAttribute( "collapsed", "true" );      else         document.getElementById( "day-tree-item-"+i ).removeAttribute( "collapsed" );   }      // Divide events into all day and other events   for( var i = 0; i < dayEventList.length; i++ ) {      if ( dayEventList[i].event.allDay == true )         allDayEvents.push(dayEventList[i]);      else         normalEvents.push(dayEventList[i]);   }      // Calculate event draw properties (where events are drawn )   this.setDrawProperties(normalEvents);   this.setAllDayDrawProperties(allDayEvents, this.calendarWindow.getSelectedDate() );      // Sort all day events to correct draw order   allDayEvents.sort(this.compareAllDayEvents);      // add allday events to DOM (if any)   if( allDayEvents.length == 0 ) {      dayViewContent.removeAttribute( "allday" );      collapsibleBox.setAttribute( "collapsed", "true" );   } else {      //resize the day's content box.      dayViewContent.setAttribute( "allday", "true" );      //show the all day box      collapsibleBox.removeAttribute( "collapsed" );            allDayLabel.value = calendarStringBundle.GetStringFromName( "AllDayEvents" );      allDayLabel.setAttribute("width", kDayViewHourLeftStart - 10);            for( var i = 0; i < allDayEvents.length; i++ ) {         eventBox = this.createAllDayEventBox( allDayEvents[i] );         this.insertAllDayEventBox(eventBox, allDayBox);                  this.kungFooDeathGripOnEventBoxes.push( eventBox );      }   }      // Add non-allday events to DOM   for ( var i = 0; i < normalEvents.length; ++i )   {      eventBox = this.createEventBox( normalEvents[i] );      document.getElementById( "day-view-content-board" ).appendChild( eventBox );      this.kungFooDeathGripOnEventBoxes.push( eventBox );   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/38c2eee92ee99cdbf47697d896e01bd5598e7f5a/dayView.js/clean/calendar/resources/content/dayView.js