rem: var element = { value: null }; 
add: var element; 
context: function goUpdateTableMenuItems(commandset){  var enabled = false;  var enabledIfTable = false;  if (!gEditor)  {    dump("goUpdateTableMenuItems: too early, not initialized\n");    return;  }  var flags = gEditor.flags;  if (!(flags & nsIPlaintextEditor.eEditorReadonlyMask) &&      IsEditingRenderedHTML())  {    var tagNameObj = { value: "" };    var element = { value: null };    try {      gEditor.getSelectedOrParentTableElement(element, tagNameObj);    }    catch(e) {}    if (element && element.value)    {      // Value when we need to have a selected table or inside a table      enabledIfTable = true;      // All others require being inside a cell or selected cell      enabled = (tagNameObj.value == "td");    }  }  // Loop through command nodes  for (var i = 0; i < commandset.childNodes.length; i++)  {    var commandID = commandset.childNodes[i].getAttribute("id");    if (commandID)    {      if (commandID == "cmd_InsertTable" ||          commandID == "cmd_JoinTableCells" ||          commandID == "cmd_SplitTableCell" ||          commandID == "cmd_ConvertToTable")      {        // Call the update method in the command class        goUpdateCommand(commandID);      }      // Directly set with the values calculated here      else if (commandID == "cmd_DeleteTable" ||               commandID == "cmd_NormalizeTable" ||               commandID == "cmd_editTable" ||               commandID == "cmd_TableOrCellColor" ||               commandID == "cmd_SelectTable")      {        goSetCommandEnabled(commandID, enabledIfTable);      } else {        goSetCommandEnabled(commandID, enabled);      }    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/27b8578e836492550f5073f04ba3f1c9d1fd7e53/editor.js/buggy/editor/ui/composer/content/editor.js