rem: if (ValidateData()) { editorShell.BeginBatchChanges(); editorShell.CloneAttributes(TableElement, globalTableElement);  var selectedCell = editorShell.GetFirstSelectedCell(); while (selectedCell) {   editorShell.CloneAttributes(selectedCell,globalCellElement); selectedCell = editorShell.GetNextSelectedCell(); }     editorShell.EndBatchChanges(); return true; } return false; 
add:  return Apply(); 
context: function onOK(){  if (ValidateData())  {    editorShell.BeginBatchChanges();    editorShell.CloneAttributes(TableElement, globalTableElement);    // Apply changes to all selected cells    var selectedCell = editorShell.GetFirstSelectedCell();    while (selectedCell)    {      // TODO: We need to change this to set only particular attributes      // Set an "ignore" attribute on the attribute node?      editorShell.CloneAttributes(selectedCell,globalCellElement);       selectedCell = editorShell.GetNextSelectedCell();    }    //TODO: DOM manipulation to add/remove table rows/columns,    //      Switch cell type to TH -- involves removing TD and replacing with TD    //      Creating and moving CAPTION element                editorShell.EndBatchChanges();    return true;  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/79313083a5c8e1f1dcbd993236abae392fc4554e/EdTableProps.js/clean/editor/ui/dialogs/content/EdTableProps.js