rem: if(this.alwaysShowContainer) {   if(bShow) { this.containerExpandEvent.fire(this); } else { this.containerCollapseEvent.fire(this); } this._bContainerOpen = bShow; 
add: if(this.alwaysShowContainer && this._bContainerOpen) { 
context: YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {    // Implementer has container always open so don't mess with it    if(this.alwaysShowContainer) {        // Fire these events to give implementers a hook into the container        // being populated and being emptied        if(bShow) {            this.containerExpandEvent.fire(this);        }        else {            this.containerCollapseEvent.fire(this);        }        this._bContainerOpen = bShow;        return;    }    var oContainer = this._oContainer;    // Container is already closed    if (!bShow && !this._bContainerOpen) {        oContainer._oContent.style.display = "none";        return;    }    // If animation is enabled...    var oAnim = this._oAnim;    if (oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {        // If helpers need to be collapsed, do it right away...        // but if helpers need to be expanded, wait until after the container expands        if(!bShow) {            this._toggleContainerHelpers(bShow);        }        if(oAnim.isAnimated()) {            oAnim.stop();        }        // Clone container to grab current size offscreen        var oClone = oContainer._oContent.cloneNode(true);        oContainer.appendChild(oClone);        oClone.style.top = "-9000px";        oClone.style.display = "block";        // Current size of the container is the EXPANDED size        var wExp = oClone.offsetWidth;        var hExp = oClone.offsetHeight;        // Calculate COLLAPSED sizes based on horiz and vert anim        var wColl = (this.animHoriz) ? 0 : wExp;        var hColl = (this.animVert) ? 0 : hExp;        // Set animation sizes        oAnim.attributes = (bShow) ?            {width: { to: wExp }, height: { to: hExp }} :            {width: { to: wColl}, height: { to: hColl }};        // If opening anew, set to a collapsed size...        if(bShow && !this._bContainerOpen) {            oContainer._oContent.style.width = wColl+"px";            oContainer._oContent.style.height = hColl+"px";        }        // Else, set it to its last known size.        else {            oContainer._oContent.style.width = wExp+"px";            oContainer._oContent.style.height = hExp+"px";        }        oContainer.removeChild(oClone);        oClone = null;    	var oSelf = this;    	var onAnimComplete = function() {            // Finish the collapse    		oAnim.onComplete.unsubscribeAll();            if(bShow) {                oSelf.containerExpandEvent.fire(oSelf);            }            else {                oContainer._oContent.style.display = "none";                oSelf.containerCollapseEvent.fire(oSelf);            }            oSelf._toggleContainerHelpers(bShow);     	};        // Display container and animate it        oContainer._oContent.style.display = "block";        oAnim.onComplete.subscribe(onAnimComplete);        oAnim.animate();        this._bContainerOpen = bShow;    }    // Else don't animate, just show or hide    else {        if(bShow) {            oContainer._oContent.style.display = "block";            this.containerExpandEvent.fire(this);        }        else {            oContainer._oContent.style.display = "none";            this.containerCollapseEvent.fire(this);        }        this._toggleContainerHelpers(bShow);        this._bContainerOpen = bShow;   }};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/autocomplete.js/buggy/www/resources/yui/autocomplete/autocomplete.js