rem: var tableEd = gEditor.QueryInterface(Components.interfaces.nsITableEditor); tableEd.getSelectedOrParentTableElement(foundElement, tagNameObj, countObj);  if (foundElement && countObj.value > 1) 
add: try { var elt = new Object(); numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj); foundElement = elt.value; } catch(e) {} if (foundElement && numSelected > 1) 
context: function InitJoinCellMenuitem(id){  // Change text on the "Join..." item depending if we  //   are joining selected cells or just cell to right  // TODO: What to do about normal selection that crosses  //       table border? Try to figure out all cells  //       included in the selection?  var menuText;  var menuItem = document.getElementById(id);  if (!menuItem) return;  // Use "Join selected cells if there's more than 1 cell selected  var tagNameObj = new Object;  var countObj = new Object;  var foundElement;    var tableEd = gEditor.QueryInterface(Components.interfaces.nsITableEditor);  tableEd.getSelectedOrParentTableElement(foundElement,                                          tagNameObj, countObj);      if (foundElement && countObj.value > 1)    menuText = GetString("JoinSelectedCells");  else    menuText = GetString("JoinCellToRight");  menuItem.setAttribute("label",menuText);  menuItem.setAttribute("accesskey",GetString("JoinCellAccesskey"));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/160100a09b4b930d5b308fda04a1e21843697414/editor.js/buggy/editor/ui/composer/content/editor.js