rem: oSelf._toggleContainer(true); 
add: var ok = oSelf.doBeforeExpandContainer(oSelf._oTextbox, oSelf._oContainer, sQuery, aResults); oSelf._toggleContainer(ok); 
context: YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) {    if(aResults === null) {        oSelf.dataErrorEvent.fire(oSelf, sQuery);    }    if (!oSelf._bFocused || !aResults) {        return;    }    var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);    var contentStyle = oSelf._oContainer._oContent.style;    contentStyle.width = (!isOpera) ? null : "";    contentStyle.height = (!isOpera) ? null : "";    var sCurQuery = decodeURIComponent(sQuery);    oSelf._sCurQuery = sCurQuery;    oSelf._bItemSelected = false;    if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) {        oSelf._initList();    }    var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed);    oSelf._nDisplayedItems = nItems;    if (nItems > 0) {        oSelf._initContainerHelpers();        var aItems = oSelf._aListItems;        // Fill items with data        for(var i = nItems-1; i >= 0; i--) {            var oItemi = aItems[i];            var oResultItemi = aResults[i];            oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery);            oItemi.style.display = "list-item";            oItemi._sResultKey = oResultItemi[0];            oItemi._oResultData = oResultItemi;        }        // Empty out remaining items if any        for(var j = aItems.length-1; j >= nItems ; j--) {            var oItemj = aItems[j];            oItemj.innerHTML = null;            oItemj.style.display = "none";            oItemj._sResultKey = null;            oItemj._oResultData = null;        }        if(oSelf.autoHighlight) {            // Go to the first item            var oFirstItem = aItems[0];            oSelf._toggleHighlight(oFirstItem,"to");            oSelf.itemArrowToEvent.fire(oSelf, oFirstItem);            oSelf._typeAhead(oFirstItem,sQuery);        }        else {            oSelf._oCurItem = null;        }        // Expand the container        oSelf._toggleContainer(true);    }    else {        oSelf._clearList();    }    oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults);};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/autocomplete-debug.js/buggy/www/resources/yui/autocomplete/autocomplete-debug.js