rem: if (state == "" || state == "open") { splitter.setAttribute("state", "collapsed") } else { splitter.setAttribute("state", "") 
add:  for (var ii=0; ii < children.length; ii++) { var src = children.item(ii).getAttribute('src')  if (src == target) { children.item(ii).removeAttribute('collapsed'); titledbutton.parentNode.setAttribute('open-panel-src',target); } if (src == last_src) { children.item(ii).setAttribute('collapsed','true'); } 
context: function sidebarOpenClosePanel(splitter) {  var state = splitter.getAttribute("state")  var resizeafter = splitter.getAttribute("resizeafter")  var hasOlderSibling = splitter.previousSibling  if (!hasOlderSibling && resizeafter != 'grow') {    return  }  if (state == "" || state == "open") {    splitter.setAttribute("state", "collapsed")  } else {    splitter.setAttribute("state", "")  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b0a5a95a112925bcd2ae99e3256a9b533b2e63e2/sidebarOverlay.js/buggy/suite/common/sidebar/sidebarOverlay.js