rem: var element = document.getElementById("columnMenuItem:" + columns[i].resource); if (element && columns[i].hidden != "true") element.setAttribute("checked", "true"); 
add: var element = document.getElementById("columnMenuItem:" + columns[i].id); if (element) if (columns[i].hidden == "true") element.setAttribute("checked", "false"); else element.setAttribute("checked", "true"); 
context: function fillColumnsMenu(aEvent) {  var bookmarksView = document.getElementById("bookmarks-view");  var columns = bookmarksView.columns;  var i;  if (!gConstructedColumnsMenuItems) {    for (i = 0; i < columns.length; ++i) {      var menuitem = document.createElement("menuitem");      menuitem.setAttribute("label", columns[i].label);      menuitem.setAttribute("resource", columns[i].resource);      menuitem.setAttribute("id", "columnMenuItem:" + columns[i].resource);      menuitem.setAttribute("type", "checkbox");      menuitem.setAttribute("checked", columns[i].hidden != "true");      aEvent.target.appendChild(menuitem);    }    gConstructedColumnsMenuItems = true;  }  else {    for (i = 0; i < columns.length; ++i) {      var element = document.getElementById("columnMenuItem:" + columns[i].resource);      if (element && columns[i].hidden != "true")        element.setAttribute("checked", "true");    }  }    aEvent.preventBubble();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/291ba420cabcd0825293fcca2c98f45f0b4a2418/bookmarksManager.js/clean/xpfe/components/bookmarks/resources/bookmarksManager.js