rem: showMiscellaneousSeparator(); 
add:   document.getElementById("misc-separator").removeAttribute("collapsed"); 
context: function LinkToolbarTransientMenu (linkType) {  this.constructor(linkType);  this.getXULElement = function() {    if (this.__proto__.getXULElement.apply(this))       return this.__proto__.getXULElement.apply(this);    else      return this.createXULElement();  }  this.createXULElement = function() {    // XXX: clone a prototypical XUL element instead of hardcoding these    //   attributes    var menu = document.createElement("menu");    menu.setAttribute("id", this.xulElementId);    menu.setAttribute("label", this.linkType);    menu.setAttribute("disabled", "true");    menu.setAttribute("class", "menu-iconic bookmark-item");    menu.setAttribute("container", "true");    menu.setAttribute("type", "rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type");    document.getElementById("more-menu-popup").appendChild(menu);    return menu;  }  this.getPopup = function() {    if (!this.__proto__.getPopup.apply(this))      this.getXULElement().appendChild(this.createPopup());    return this.__proto__.getPopup.apply(this)   }  this.createPopup = function() {    var popup = document.createElement("menupopup");    popup.setAttribute("id", this.xulPopupId);    return popup;  }  this.clear = function() {    this.__proto__.clear.apply(this);    // XXX: we really want to use this instead of removeXULElement    //this.hideXULElement();    this.removeXULElement();  }  this.hideXULElement = function() {    /*     * XXX: using "hidden" or "collapsed" leads to a crash when you      *        open the More menu under certain circumstances.  Maybe     *        related to bug 83906.  As of 0.9.2 I it doesn't seem     *        to crash anymore.     */    this.getXULElement().setAttribute("collapsed", "true");  }  this.removeXULElement = function() {    // XXX: stop using this method once it's safe to use hideXULElement    if (this.__proto__.getXULElement.apply(this))      this.__proto__.getXULElement.apply(this).parentNode.removeChild(          this.__proto__.getXULElement.apply(this));  }  this.displayLink = function(linkElement) {    if(!this.__proto__.displayLink.apply(this, [linkElement])) return false;    this.getXULElement().removeAttribute("collapsed");    showMiscellaneousSeparator();    return true;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/19cb7111dcec1124b0a94e185bc7d9454505946c/linkToolbarItem.js/clean/suite/browser/linkToolbarItem.js