rem: (searchTopics && 
add: (searchTopics && 
context:     function process()    {        var exactMatch = null;        var channelText = text;        if (!channelText.match(/^[#&+!]/))            channelText = "#" + channelText;        for (var i = 0; i < channels.length; i++)        {            var match = (channels[i].name.toLowerCase().indexOf(text) != -1) ||                        (searchTopics &&                          (channels[i].topic.toLowerCase().indexOf(text) != -1));            if (minUsers && (channels[i].users < minUsers))                match = false;            if (maxUsers && (channels[i].users > maxUsers))                match = false;            if (channels[i].isHidden)            {                if (match)                    channels[i].unHide();            }            else            {                if (!match)                    channels[i].hide();            }            if (match && (channels[i].name.toLowerCase() == channelText))                exactMatch = channels[i];            if ((i % 100) == 0)                updateProgress(MSG_CD_FILTERING, 100 * i / channels.length);        }        updateProgress();        createChannelItem.name = channelText;        var tree = document.getElementById("channelList");        tree.treeBoxObject.invalidateRow(0);        if (exactMatch)        {            if (!createChannelItem.isHidden)                createChannelItem.hide();            channelTreeView.selectedIndex = exactMatch.calculateVisualRow();        }        else        {            if (createChannelItem.isHidden)                createChannelItem.unHide();            if (channelTreeView.selectedIndex == -1)            {                // The special 'create' row is visible, so prefer the first                // real channel over it.                if (channelTreeView.rowCount >= 2)                    channelTreeView.selectedIndex = 1;                else if (channelTreeView.rowCount >= 1)                    channelTreeView.selectedIndex = 0;            }        }    };
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/ef005ce717b2ba643ade2dc5d62b02aa927ee574/channels.js/clean/xul/content/channels.js