rem: /* Attempt to find group start */ if (Mail.selectedArray != null) { var sArray = Mail.selectedArray; for (var i = sArray.length - 1; i >= 0; i--) { var msObj = sArray[i]; if (msObj != null && msObj.selected) { Mail.groupStart = msObj; break; } } } 
add: Mail.findLastSelected(); 
context: 	onSummaryMouseUp : function(event) {		event = mousePos.update(event);				var dragIndicator = Mail.dragIndicator;		if (dragIndicator != null) {			dragIndicator.style.display = "none";		}				if (Mail.lastSelected.pendingHighlight) {			if (event.ctrlKey) {				if (Mail.lastSelected.selected) {					/* Toggle if selected */					Mail.summaryUnhighlight(Mail.lastSelected);					Mail.resetLastSelected();				}				else {					Mail.summaryHighlight(Mail.lastSelected, true);				}			}			else if (event.shiftKey) {				if (Mail.groupStart == null) {					/* Attempt to find group start */					if (Mail.selectedArray != null) {						var sArray = Mail.selectedArray;						for (var i = sArray.length - 1; i >= 0; i--) {							var msObj = sArray[i];							if (msObj != null && msObj.selected) {								Mail.groupStart = msObj;								break;							}						}					}				}								Mail.summaryHighlight(Mail.lastSelected, true);								if (Mail.groupStart != null) {					var nextObj;					var searchDown = true;					var lastSelected = Mail.lastSelected;										if (Mail.lastSelected.index > Mail.groupStart.index) {						searchDown = false;					}										nextObj = searchDown ? Mail.lastSelected.next : Mail.lastSelected.prev;										while (nextObj != Mail.groupStart) {						Mail.summaryHighlight(nextObj, event.shiftKey);						nextObj = searchDown ? nextObj.next : nextObj.prev;					}										Mail.lastSelected = lastSelected;				}			}			else {				Mail.summaryUnhighlightAll();				Mail.groupStart = Mail.lastSelected;				Mail.summaryHighlight(Mail.lastSelected);			}		}				document.onmousemove = null;		document.onmouseup = null;						if (Mail.dragging) {			//Mail.checkFolderLocation(new Coordinate());			Mail.dragToFolder(mousePos);			Mail.dragging = false;		}	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/5fba061b8b15faed1a1b16eb0b88b00f76510390/mail.js/clean/portal-web/docroot/html/js/portlet/mail.js