rem: function update_sort_menuitems(column, direction) { 
add: function update_sort_menuitems(column, direction) { 
context: function update_sort_menuitems(column, direction) {    var unsorted_menuitem = document.getElementById("unsorted_menuitem");    var sort_ascending = document.getElementById('sort_ascending');    var sort_descending = document.getElementById('sort_descending');    if (direction == "natural") {        unsorted_menuitem.setAttribute('checked','true');        sort_ascending.setAttribute('disabled','true');        sort_descending.setAttribute('disabled','true');        sort_ascending.removeAttribute('checked');        sort_descending.removeAttribute('checked');    } else {        sort_ascending.removeAttribute('disabled');        sort_descending.removeAttribute('disabled');        if (direction == "ascending") {            sort_ascending.setAttribute('checked','true');        } else {            sort_descending.setAttribute('checked','true');        }        var columns = document.getElementById('theColumns');        var column_node = columns.firstChild;        var column_name = column.id;        var menuitem = document.getElementById('fill_after_this_node');        menuitem = menuitem.nextSibling        while (1) {            var name = menuitem.getAttribute('column_id');            debug("update: "+name)            if (!name) break;            if (column_name == name) {                menuitem.setAttribute('checked', 'true');                break;            }            if ("true" == column_node.getAttribute("hidden")) {                debug("disabled: " + name);                item.setAttribute("disabled", "true");            }            menuitem = menuitem.nextSibling;            column_node = column_node.nextSibling;        }    }    enable_sort_menuitems();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7ace1f96cd617029ea1e059ee9c148eaacb43341/bookmarks.js/buggy/xpfe/components/bookmarks/resources/bookmarks.js