rem: var document = parentNode.ownerDocument; 
add: var document = parentNode.ownerDocument; 
context: function mmgr_addtb (parentNode, beforeNode, commandName, attribs){    if (commandName == "-")        return this.appendToolbarSeparator(parentNode, beforeNode, attribs);    var parentId = parentNode.getAttribute("id");        if (!ASSERT(commandName in this.commandManager.commands,                "unknown command " + commandName + " targeted for " +                parentId))    {        return null;    }        var command = this.commandManager.commands[commandName];    var document = parentNode.ownerDocument;        var tbitem = document.createElement ("toolbarbutton");    var id = parentNode.getAttribute("id") + ":" + commandName;    tbitem.setAttribute ("id", id);    tbitem.setAttribute ("class", "toolbarbutton-1");    if (command.tip)        tbitem.setAttribute ("tooltiptext", command.tip);    tbitem.setAttribute ("label", command.label.replace("&", ""));    tbitem.setAttribute ("oncommand",                         "dispatch('" + commandName + "');");    if (typeof attribs == "object")    {        for (var p in attribs)            tbitem.setAttribute (p, attribs[p]);    }        command.uiElements.push(tbitem);    parentNode.insertBefore (tbitem, beforeNode);    return tbitem;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/00b6cdf954399a8f3562bddaefd3164388596abb/menu-manager.js/clean/js/lib/menu-manager.js