context:   createMenuItem: function (aDisplayName, aAccessKey, aCommandName, aSelection)  {    var xulElement = document.createElementNS(XUL_NS, "menuitem");    xulElement.setAttribute("cmd", aCommandName);    var cmd = "cmd_" + aCommandName.substring(NC_NS_CMD.length);    xulElement.setAttribute("command", cmd);        switch (aCommandName) {    case NC_NS_CMD + "bm_expandfolder":      var shouldCollapse = true;      for (var i=0; i<aSelection.length; ++i)        if (!aSelection.isExpanded[i])          shouldCollapse = false;      aDisplayName =  shouldCollapse? BookmarksUtils.getLocaleString("cmd_bm_collapsefolder") : aDisplayName;    break;    }    xulElement.setAttribute("label", aDisplayName);    xulElement.setAttribute("accesskey", aAccessKey);    return xulElement;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cc626d699ab389d02125aad49eddeb3c2e691fca/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js