rem: } 
add: } 
context: function BuildTreePopup( treeColGroup, treeHeadRow, popup, skipCell ){  var popupChild = popup.firstChild;  var firstTime = !popupChild ? true : false;  var currTreeCol = treeHeadRow.firstChild;  var currColNode = treeColGroup.firstChild;  var count = 0;  while (currTreeCol) {    if (currColNode.localName == "splitter")      currColNode = currColNode.nextSibling;    if (skipCell != currTreeCol) {      // Construct an entry for each cell in the row.      var columnName = currTreeCol.getAttribute("value");      if (firstTime) {        if (currTreeCol.getAttribute("collapsed") != "true") {          popupChild = document.createElement("menuitem");          popupChild.setAttribute("type", "checkbox");          popupChild.setAttribute("value", columnName);          if (!count++) popupChild.setAttribute("disabled", "true");          if (columnName == "") {            var display = currTreeCol.getAttribute("display");            popupChild.setAttribute("value", display);          }          popupChild.setAttribute("colid", currColNode.id);          popupChild.setAttribute("oncommand", "ToggleColumnState(this, document)");          if ("true" != currColNode.getAttribute("hidden")) {            popupChild.setAttribute("checked", "true");          }          popup.appendChild(popupChild);        }      } else {        if ("true" == currColNode.getAttribute("hidden")) {          if (popupChild.getAttribute("checked"))            popupChild.removeAttribute("checked");        } else {          if (!popupChild.getAttribute("checked"))            popupChild.setAttribute("checked", "true");        }        if (currColNode.getAttribute("collapsed") == "true")          popupChild.setAttribute("hidden", "true");        else          popupChild.removeAttribute("hidden");        popupChild = popupChild.nextSibling;      }    }     currTreeCol = currTreeCol.nextSibling;    currColNode = currColNode.nextSibling;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/treePopups.js/clean/xpfe/global/resources/content/treePopups.js