rem: if (toDoItem.location) 
add: var location = toDoItem.getProperty("LOCATION"); if (location) 
context: function getPreviewForTask( toDoItem ){  if( toDoItem )  {    gShowTooltip = true; //needed to show the tooltip.    const vbox = document.createElement( "vbox" );    boxInitializeHeaderGrid(vbox);    var hasHeader = false;             if (toDoItem.title)    {      boxAppendLabeledText(vbox, "tooltipTitle", toDoItem.title);      hasHeader = true;    }    if (toDoItem.location)    {      boxAppendLabeledText(vbox, "tooltipLocation", toDoItem.location);      hasHeader = true;    }       if (toDoItem.entryDate.isValid)    {      var startDate = toDoItem.entryDate.jsDate;      boxAppendLabeledDateTime(vbox, "tooltipStart", startDate, false);      hasHeader = true;    }       if (toDoItem.dueDate.isValid)    {      var dueDate = toDoItem.dueDate.jsDate;      boxAppendLabeledDateTime(vbox, "tooltipDue", dueDate, false);      hasHeader = true;    }       if (toDoItem.priority && toDoItem.priority != 0)    {      boxAppendLabeledText(vbox, "tooltipPriority", String(toDoItem.priority));      hasHeader = true;    }    if (toDoItem.status && toDoItem.status != "NONE")    {      var status = getToDoStatusString(toDoItem);      boxAppendLabeledText(vbox, "tooltipStatus", status);      hasHeader = true;    }    if (toDoItem.percentComplete != 0 && toDoItem.percentComplete != 100)    {      boxAppendLabeledText(vbox, "tooltipPercent", String(toDoItem.percentComplete)+"%");      hasHeader = true;    } else if (toDoItem.percentComplete == 100)    {        var completedDate = toDoItem.completedDate.jsDate;      boxAppendLabeledDateTime(vbox, "tooltipCompleted", completedDate, false);      hasHeader = true;    }    var description = toDoItem.getProperty("description");    if (description)    {      // display up to 4 description lines like body of message below headers      if (hasHeader)        boxAppendText(vbox, "");       boxAppendLines(vbox, description, 4);    }          return ( vbox );  }   else  {    gShowTooltip = false; //Don't show the tooltip    return null;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/06c9a58294e0eec55a2de936f2b123474b437f3f/mouseoverPreviews.js/buggy/calendar/resources/content/mouseoverPreviews.js