rem: makePreview(getSelectedImage(tree)); 
add: makePreview(tree.treeBoxObject.selection.currentIndex); 
context: function onImageSelect(){  var tree = document.getElementById("imagetree");  var saveAsButton = document.getElementById("imagesaveasbutton");  if (tree.treeBoxObject.selection.count == 1)  {    makePreview(getSelectedImage(tree));    saveAsButton.setAttribute("disabled", "false");  }  else    saveAsButton.setAttribute("disabled", "true");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/524ad17bc414c6db9dc43feeee3e006780c37f40/pageInfo.js/buggy/browser/base/content/pageInfo.js