context: function doCurrentStatusEnd(){    // Reset refresh button.    if ((state.state == STATE_LIST_AND_LOAD) || (state.state == STATE_LIST_THEN_LOAD))        document.getElementById("refreshNow").disabled = false;    // Check that /list finished ok if we're just doing a list.    if (state.state == STATE_LIST_THEN_LOAD)    {        if ("error" in network._list)        {            updateProgress(MSG_CD_ERROR_LIST);            // Can't seem to "undefine" the parameters using the function format.            setTimeout("updateProgress()", 10000);            // Bail out if there was an error!            return;        }        else        {            // Replace files.            updateProgress();        }    }    // Finish file handling work.    if ((state.state == STATE_LOAD) || (state.state == STATE_LIST_AND_LOAD))    {        if (channels.length > 0)            channelTreeView.childData.appendChildren(channels);        state.loadFile.close();        delete state.loadFile;        delete state.loadPendingData;        delete state.loadChunk;        delete state.loadedSoFar;        delete state.loadNeverComplete;        updateProgress();        runFilter();    }    if (state.state == STATE_LIST_THEN_LOAD)        setState(STATE_LOAD);    else        setState(STATE_IDLE);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/c85c41c412d956a5215b04ec179ec1b12d6d4564/channels.js/clean/extensions/irc/xul/content/channels.js