rem: var item = tree.contentView.getItemAtIndex(k); var cell = item.firstChild.firstChild; var user = cx.channel.getUser(cell.getAttribute("unicodeName")); if (user) { cx.userList.push(user); cx.nicknameList.push(user.unicodeName); cx.canonNickList.push(user.canonicalName); if (i == 0 && k == start.value) { cx.user = user; cx.nickname = user.unicodeName; cx.canonNick = user.canonicalName; } } 
add: cx.user = user; cx.nickname = user.unicodeName; cx.canonNick = user.canonicalName; 
context: function getUserlistContext(cx){    if (!cx)        cx = new Object();    cx.__proto__ = getObjectDetails(client.currentObject);    if (!cx.channel)        return cx;    cx.userList = new Array();    cx.nicknameList = new Array();    cx.canonNickList = new Array();    var tree = document.getElementById("user-list");    var rangeCount = tree.view.selection.getRangeCount();    for (var i = 0; i < rangeCount; ++i)    {        var start = {}, end = {};        tree.view.selection.getRangeAt(i, start, end);        // If they == -1, we've got no selection, so bail.        if ((start.value == -1) && (end.value == -1))            return cx;        for (var k = start.value; k <= end.value; ++k)        {            var item = tree.contentView.getItemAtIndex(k);            var cell = item.firstChild.firstChild;            var user = cx.channel.getUser(cell.getAttribute("unicodeName"));            if (user)            {                cx.userList.push(user);                cx.nicknameList.push(user.unicodeName);                cx.canonNickList.push(user.canonicalName);                if (i == 0 && k == start.value)                {                    cx.user = user;                    cx.nickname = user.unicodeName;                    cx.canonNick = user.canonicalName;                }            }        }    }    return cx;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b7e3890899043c50cc9416261ebb60084772c5c7/static.js/buggy/extensions/irc/xul/content/static.js