rem: refreshBufferList(g_cq_buffer_current); 
add: refreshBufferList(g_cq_buffer_current, "finishImport"); 
context: function finishImport() {    debug('finishImport');    var theOutput = getResultFrame();    var theOutputDoc = null;    debug("theOutput = " + theOutput);    if (theOutput) {        if (is.ie) {            theOutputDoc = theOutput.contentWindow.document;        } else {            theOutputDoc = theOutput.contentDocument;        }        if (theOutputDoc) {            var theList =                theOutputDoc.getElementsByTagName(g_cq_buffer_basename);            if (is.ie && theOutputDoc.XMLDocument) {                theList = theOutputDoc.XMLDocument.getElementsByTagName                    (g_cq_buffer_basename);            } // is.ie            var theTimeout = null;            // if we timed out, try again            if (theList.length < 1) {              debug("no list: setting new timeout " + g_cq_timeout);              theTimeout = setTimeout('finishImport();', g_cq_timeout);              return null;            }            clearTimeout(theTimeout);            debug("theList = " + theList + ", length = " + theList.length);            var theValue = null;            for (var i = 0; i < theList.length; i++) {                theValue = unescape( (theList[i]).firstChild.nodeValue );                debug("i = " + i + ", " + theValue);                getBuffer(i).value = theValue;            } // for theList            // leave the user in the same buffer            refreshBufferList(g_cq_buffer_current);            //clearTimeout(theTimeout);            var theUri = document.getElementById(g_cq_uri).value;            var theQuery = '<p>' + theUri + ' imported</p>';            submitForm(document.getElementById(g_cq_query_form_id),                       theQuery, "text/html");        } // if theOutputDoc    } // if theOutput} // finishImport
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js