rem: var buttons = params.buttons; 
add: gButtons = params.buttons; 
context: function init() {  // Fill the addons list  var items = window.arguments[0];  var addons = document.getElementById("addonsChildren");  if (items.length > 0)    document.getElementById("addonsTree").hidden = false;  for (var i = 0; i < items.length; ++i) {    var treeitem = document.createElementNS(kXULNS, "treeitem");    var treerow  = document.createElementNS(kXULNS, "treerow");    var treecell = document.createElementNS(kXULNS, "treecell");    treecell.setAttribute("label", items[i]);    treerow.appendChild(treecell);    treeitem.appendChild(treerow);    addons.appendChild(treeitem);  }    var de = document.documentElement;  var params = window.arguments[1];  // Set the messages  var messages = ["message1", "message2", "message3"];  for (var i = 0; i < messages.length; ++i) {    if (messages[i] in params) {      var message = document.getElementById(messages[i]);      message.hidden = false;      message.appendChild(document.createTextNode(params[messages[i]]));    }  }    // Set the window title  if ("title" in params)    document.title = params.title;  // Set up the buttons  if ("buttons" in params) {    var buttons = params.buttons;    var buttonString = "";    for (var buttonType in buttons)      buttonString += "," + buttonType;    dump("*** de.toSource = " + de.localName + "\n");    de.buttons = buttonString.substr(1);    for (buttonType in buttons) {      var button = de.getButton(buttonType);      button.label = buttons[buttonType].label;      if (buttons[buttonType].focused)        button.focus();      document.addEventListener(kDialog + buttonType, handleButtonCommand, true);    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ab435ad30b2984a0eff64f375dd449d0e9c13f72/list.js/clean/toolkit/mozapps/extensions/content/list.js