rem: var view = outliner.outlinerBoxObject.view; if (!view.rowCount) return; var clickedRow = outliner.outlinerBoxObject.selection.currentIndex; var lineNum = view.getCellText(clickedRow, "image-number");  makePreview(imageList[lineNum-1]); 
add: makePreview(getSelectedItem(outliner)); saveAsButton.setAttribute("disabled", "false"); } else { saveAsButton.setAttribute("disabled", "true"); 
context: function onImageSelect(){  var outliner = document.getElementById("imageoutliner");  var preview = document.getElementById("imagepreview");  if (outliner.outlinerBoxObject.selection.count == 1)  {    var view = outliner.outlinerBoxObject.view;    if (!view.rowCount) return;    var clickedRow = outliner.outlinerBoxObject.selection.currentIndex;    var lineNum = view.getCellText(clickedRow, "image-number");    makePreview(imageList[lineNum-1]);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/afe090b565c9d1605c09c0a2b243bc5fdf3fa3ae/pageInfo.js/buggy/suite/browser/pageInfo.js