rem: var sidebarBox = document.getElementById('sidebar-box'); var sidebar_splitter = document.getElementById('sidebar-splitter');  sidebarBox.setAttribute('hackforbug20546-applied','true');    var state = sidebar_splitter.getAttribute('state');  if (state && state == 'collapsed') {   sidebarBox.removeAttribute('hackforbug20546');    var panels = document.getElementById('sidebar-panels'); var target = panels.getAttribute('open-panel-src'); var iframe = document.getElementById('sidebar-content'); iframe.setAttribute('src', target);   bump_width(+1); setTimeout("bump_width(-1)",10);  } else {   sidebarBox.setAttribute('hackforbug20546','true'); } 
add:   setTimeout("document.persist('sidebar-box', 'collapsed');",100); 
context: function SidebarExpandCollapse() {  var sidebarBox = document.getElementById('sidebar-box');  var sidebar_splitter = document.getElementById('sidebar-splitter');  sidebarBox.setAttribute('hackforbug20546-applied','true');  // Get the current open/collapsed state  // The value of state is the "preclick" state  var state = sidebar_splitter.getAttribute('state');  if (state && state == 'collapsed') {    // Going from collapsed to open.    sidebarBox.removeAttribute('hackforbug20546');    // Reset the iframe's src to get the content to display.    // This might be bug #22214.    var panels = document.getElementById('sidebar-panels');    var target = panels.getAttribute('open-panel-src');    var iframe = document.getElementById('sidebar-content');    iframe.setAttribute('src', target);    // XXX Partial hack workaround for bug #22214.    bump_width(+1);    setTimeout("bump_width(-1)",10);  } else {    // Going from open to collapsed.    sidebarBox.setAttribute('hackforbug20546','true');  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/06c4447eac77d51936c21645c4d01c462fed8606/sidebarOverlay.js/buggy/suite/common/sidebar/sidebarOverlay.js