rem: which.ElementSets[which.set_qty]['elements'][i] = which.makenew( which.dup_elements[i] ); if ( which.ElementSets[ which.set_qty ]['elements'][ i ] ) { newinput.appendChild(  which.ElementSets[which.set_qty]['elements'][i] ); }  
add:  which.ElementSets[which.set_qty]['elements'][i] = which.makenew( which.dup_elements[i] ); if ( which.ElementSets[ which.set_qty ]['elements'][ i ] ) { newinput.appendChild(  which.ElementSets[which.set_qty]['elements'][i] ); } 
context: function DuplicateElementSet ( which, startRow ) {    which.set_qty++;    which.ElementSets[which.set_qty]=new Array();    which.ElementSets[which.set_qty]['elements']=new Array();    if (!startRow) startRow = which.formtable.tBodies[0].rows.length+which.startRowOffset;    which.ElementSets[which.set_qty]['start_row'] = startRow;	if (which.singleRow) {		new_single_row = which.formtable.tBodies[0].insertRow( startRow );	} else {		new_single_row = false;	}        for (i=0; i<which.dup_elements.length; i++) {        if( !new_single_row ){			 newrow=which.formtable.tBodies[0].insertRow( startRow+i  );		} else {			newrow = new_single_row;		}		if (which.labelColumn) {			newcell = newrow.insertCell(newrow.cells.length);			which.addLabel( newcell, which.dup_elements[i] );			if ( !which.isSpan( which.dup_elements[i].type )) {				newrow.appendChild( newcell );				newinput = newrow.insertCell( newrow.cells.length );			} else {				newinput = newcell;				newinput.setAttribute( 'colspan', 2 );				newinput.colSpan = 2;			}		} else {			if (which.dup_elements[i].type == 'hidden') {				newinput = which.formRef;			} else {				newinput = newrow.insertCell( newrow.cells.length );			}		}        which.ElementSets[which.set_qty]['elements'][i] = which.makenew( which.dup_elements[i] );        if ( which.ElementSets[ which.set_qty ]['elements'][ i ] ) {            newinput.appendChild(  which.ElementSets[which.set_qty]['elements'][i] );        }        //newrow.appendChild( newinput );    }}
meta: 4746	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4746/f90face43a86feda0178dea333dd5e95a1529a40/elementCopier.js/buggy/scripts/elementCopier.js