rem: var grid = getTableGrid(table); var cpos = getCellPos(grid, td); 
add: var grid = getTableGrid(table), cpos = getCellPos(grid, td); var cells, lastElm; 
context: 		function trimRow(table, tr, td, new_tr) {			var grid = getTableGrid(table);			var cpos = getCellPos(grid, td);			// Time to crop away some			if (new_tr.cells.length != tr.childNodes.length) {				var cells = tr.childNodes;				var lastElm = null;				for (var x=0; td = getCell(grid, cpos.rowindex, x); x++) {					var remove = true;					var sd = getColRowSpan(td);					// Remove due to rowspan					if (inArray(cells, td)) {						new_tr.childNodes[x]._delete = true;					} else if ((lastElm == null || td != lastElm) && sd.colspan > 1) { // Remove due to colspan						for (var i=x; i<x+td.colSpan; i++)							new_tr.childNodes[i]._delete = true;					}					if ((lastElm == null || td != lastElm) && sd.rowspan > 1)						td.rowSpan = sd.rowspan + 1;					lastElm = td;				}				deleteMarked(tableElm);			}		}
meta: 10343	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin_src.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js