rem: var all_panels = document.getElementById('other-panels'); all_panels.treeBoxObject.selection.clearSelection(); 
add: tree.view.selection.clearSelection(); 
context: function AddPanel(){  var added = 0;    var tree = document.getElementById('other-panels');  var database = tree.database;  var sel = tree.treeBoxObject.selection;  var ranges = sel.getRangeCount();  for (var range = 0; range < ranges; ++range) {    var min = {}, max = {};    sel.getRangeAt(range, min, max);    for (var index = min.value; index <= max.value; ++index) {      var item = tree.contentView.getItemAtIndex(index);      if (item.getAttribute("container") != "true") {        var res = RDF.GetResource(item.id);        // Add the panel to the current list.        add_node_to_current_list(database, res);        ++added;      }    }  }  if (added) {    // Remove the selection in the other list.    // Selection will move to "current" list.    var all_panels = document.getElementById('other-panels');    all_panels.treeBoxObject.selection.clearSelection();    enable_buttons_for_current_panels();    enable_buttons_for_other_panels();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/acd11e98e23905f5fbd6c9a3f6be22ba384c2058/customize.js/clean/xpfe/components/sidebar/resources/customize.js