rem: debug("sidebarOpenDefaultPanel("+wait+","+tries+")"); debug("  target="+target); 
add: debug("\nsidebarOpenDefaultPanel("+wait+","+tries+")\n"); 
context: function sidebarOpenDefaultPanel(wait, tries) {  var parent = document.getElementById('sidebar-panels');  var target = parent.getAttribute('open-panel-src');  var children = parent.childNodes;  var iframe = document.getElementById('sidebar-content');  debug("sidebarOpenDefaultPanel("+wait+","+tries+")");  debug("  target="+target);  if (children.length <= 1) {    if (tries < 5) {      // No children yet, try again later      setTimeout('sidebarOpenDefaultPanel('+(wait*2)+','+(tries+1)+')',wait);    } else {      // No panels.      // XXX This should load some help page instead of about:blank.      iframe.setAttribute('src', 'about:blank');    }    return;  }  if (target && target != '') {    // Try to select the prefered panel    if (iframe.getAttribute('src') != target) {      iframe.setAttribute('src', target);    }    for (var ii=0; ii < children.length; ii++) {      if (children.item(ii).getAttribute('iframe-src') == target) {        // Found it!        children.item(ii).setAttribute('selected','true');        return;      }    }  }  // Pick the first panel  var first_button = children.item(1);  if (first_button) {    first_button.setAttribute('selected','true');    target = first_button.getAttribute('iframe-src');    parent.setAttribute('open-panel-src', target);    iframe.setAttribute('src', target);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d07fccf5486cdbf1fc55ffeea3092ceaf0bc030e/sidebarOverlay.js/clean/suite/common/sidebar/sidebarOverlay.js