rem: var eventStart = new Date(event.startDate.jsDate); var eventEnd = event.endDate && new Date(event.endDate.jsDate); if (event.startDate.isDate && eventEnd) { eventEnd.setDate(eventEnd.getDate() - 1); }  
context: function getPreviewForEvent( event, instStartDate, instEndDate ){  const vbox = document.createElement( "vbox" );  boxInitializeHeaderGrid(vbox);  if (event)  {    if (event.title)    {      boxAppendLabeledText(vbox, "tooltipTitle", event.title);    }    var location = event.getProperty("LOCATION");    if (location)    {      boxAppendLabeledText(vbox, "tooltipLocation", location);    }    if (event.startDate || instStartDate)    {      var eventStart = new Date(event.startDate.jsDate);      var eventEnd = event.endDate && new Date(event.endDate.jsDate);      if (event.startDate.isDate && eventEnd) {         eventEnd.setDate(eventEnd.getDate() - 1);      }      var startDate, endDate;      if (instStartDate && instEndDate) {        startDate = instStartDate;        endDate = instEndDate;      } else {        // Event may be recurrent event.   If no displayed instance specified,        // use next instance, or previous instance if no next instance.        startDate = instStartDate || getCurrentNextOrPreviousRecurrence(event);        var eventDuration = (event.endDate                             ? event.endDate.jsDate - event.startDate.jsDate                             : 0);        endDate = new Date(startDate.getTime() + eventDuration);      }      boxAppendLabeledDateTimeInterval(vbox, "tooltipDate", startDate, endDate);    }    if (event.status && event.status != "NONE")    {      var statusString = getEventStatusString(event);      boxAppendLabeledText(vbox, "tooltipStatus", statusString);    }    var description = event.getProperty("DESCRIPTION");    if (description)    {      // display up to 4 description lines, like body of message below headers      boxAppendText(vbox, "");       boxAppendLines(vbox, description, 4);    }    return ( vbox );  }  else  {    return null;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4ad990f6ab769f8c04e568749e60021abed672ca/mouseoverPreviews.js/buggy/calendar/resources/content/mouseoverPreviews.js