rem: delButton.onclick = deleteRowFn; 
add: delButton.onclick = deleteDateRowFn; 
context: function expandDateList(input){	// abort if we are not the last line in the list	var currentSpan = input.parentNode;	while (currentSpan.tagName != 'SPAN') currentSpan = currentSpan.parentNode;	var nextSpan = currentSpan.nextSibling;	while (nextSpan !== null) {		if (nextSpan.tagName == 'SPAN') {			return;		}		nextSpan = nextSpan.nextSibling;	}	// abort if we and the second-last input are both empty	lastSpan = currentSpan.previousSibling;	while (lastSpan.tagName != 'SPAN') lastSpan = lastSpan.previousSibling;	if (allVisibleInputsEmpty(lastSpan) && allVisibleInputsEmpty(currentSpan)) {		return;	}	// add the extra fields	var newSpan = currentSpan.cloneNode(true);	attachDateListEventHandlers(newSpan);	clearAllVisibleInputs(newSpan);	var delButton = currentSpan.nextSibling;	while (delButton.tagName != 'BUTTON') {		delButton = delButton.nextSibling;	}	delButton = delButton.cloneNode(true);	delButton.onclick = deleteRowFn;	input.parentNode.parentNode.appendChild(newSpan);	input.parentNode.parentNode.appendChild(delButton);	input.parentNode.parentNode.appendChild(document.createElement('BR'));}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/76578618a7cc2f772b5b34f64189c5ab35634261/edit.js/buggy/core/lib/js/edit.js