rem: for (var i = 0; i < bcset.childNodes.length; i++) { bcset.childNodes[i].removeAttribute("toggled"); bcset.childNodes[i].removeAttribute("checked"); } broadcaster.setAttribute("toggled", "true"); broadcaster.setAttribute("checked", "true"); 
context: function changeMode (aMode, aElement){  var broadcaster = document.getElementById(aElement.getAttribute("observes"));  var bcset = document.getElementById("broadcasterset");  for (var i = 0; i < bcset.childNodes.length; i++) {    bcset.childNodes[i].removeAttribute("toggled");    bcset.childNodes[i].removeAttribute("checked");  }  broadcaster.setAttribute("toggled", "true");  broadcaster.setAttribute("checked", "true");  var tree = document.getElementById("console");  switch (aMode) {    case "errors":      tree.setAttribute("mode", "errors");      break;    case "warnings":      tree.setAttribute("mode", "warnings");      break;    default:    case "all":      tree.removeAttribute("mode");      break;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eff8221d2c7ef74119dbf26a8efdaa85cdc7fbeb/console.js/clean/xpfe/components/console/resources/content/console.js