rem: switch (col.value.id) 
add: if (typeof col.value == "object") col.value = col.value.id; switch (col.value) 
context: function scv_click (e){    if (e.originalTarget.localName == "treecol")    {        /* resort by column */        var rowIndex = new Object();        var col = new Object();        var childElt = new Object();                var treeBox = console.views.scripts.tree;        treeBox.getCellAt(e.clientX, e.clientY, rowIndex, col, childElt);        var prop;        switch (col.value.id)        {            case "scripts:col-0":                prop = "functionName";                break;            case "scripts:col-1":                prop = "baseLineNumber";                break;            case "scripts:col-2":                prop = "lineExtent";                break;        }        var scriptsRoot = console.views.scripts.childData;        var dir = (prop == scriptsRoot._share.sortColumn) ?            scriptsRoot._share.sortDirection * -1 : 1;        //dd ("sort direction is " + dir);        scriptsRoot.setSortColumn (prop, dir);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6b7c961af3c8d8c73aa3b01e4b413f4b31418399/venkman-views.js/clean/extensions/venkman/resources/content/venkman-views.js