rem: this.doSelectCell = function(e, cal) { var cell = this; var index = cell.index; var d = cal.cellDates[index]; var date = new Date(d[0],d[1]-1,d[2]);  if (! cal.isDateOOM(date) && ! YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_RESTRICTED) && ! YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_OOB)) { if (cal.Options.MULTI_SELECT) { var link = cell.getElementsByTagName("A")[0]; 
add: YAHOO.widget.Calendar.prototype.doSelectCell = function(e, cal) { var target = YAHOO.util.Event.getTarget(e);  var cell,index,d,date;  while (target.tagName.toLowerCase() != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { target = target.parentNode; if (target.tagName.toLowerCase() == "html") { return; } }  cell = target;  if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) { index = cell.id.split("cell")[1]; d = cal.cellDates[index]; date = new Date(d[0],d[1]-1,d[2]);  var link;  if (cal.Options.MULTI_SELECT) { link = cell.getElementsByTagName("a")[0]; if (link) { 
context: 	this.doSelectCell = function(e, cal) {				var cell = this;		var index = cell.index;		var d = cal.cellDates[index];		var date = new Date(d[0],d[1]-1,d[2]);				if (! cal.isDateOOM(date) && ! YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_RESTRICTED) && ! YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_OOB)) {			if (cal.Options.MULTI_SELECT) {				var link = cell.getElementsByTagName("A")[0];				link.blur();								var cellDate = cal.cellDates[index];				var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);								if (cellDateIndex > -1) {						cal.deselectCell(index);				} else {					cal.selectCell(index);				}								} else {				var link = cell.getElementsByTagName("A")[0];				link.blur()				cal.selectCell(index);			}		}	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/calendar.js/buggy/www/resources/yui/calendar/calendar.js