BookmarksToolbarRDFObserver._overflowTimerInEffect = false; 
  resizeFunc: function(event)   {     if (event && event.type == 'focus')       window.removeEventListener('focus', BookmarksToolbar.resizeFunc, false); // hack for bug 266737    var buttons = document.getElementById("bookmarks-ptf");    if (!buttons)      return;    var chevron = document.getElementById("bookmarks-chevron");    var myToolbarItem = buttons.parentNode.parentNode;        var width = myToolbarItem.boxObject.width;    if (width <= 0) {  // hack for bug 266737      window.addEventListener('focus', BookmarksToolbar.resizeFunc, false);      return;    }    var chevronWidth = 0;    chevron.collapsed = false;    chevronWidth = chevron.boxObject.width;    chevron.collapsed = true;    var overflowed = false;    // This 3 is to account for the 'padding-left: 3px;' in browser.xul.    var usedWidth = 3;    for (var i=0; i<buttons.childNodes.length; i++) {      var button = buttons.childNodes[i];      button.collapsed = overflowed;            if (i == buttons.childNodes.length - 1) // last ptf item...        chevronWidth = 0;      if (usedWidth + button.boxObject.width + chevronWidth > width) {         overflowed = true;        // This button doesn't fit. Show it in the menu. Hide it in the toolbar.        if (!button.collapsed)          button.collapsed = true;        if (chevron.collapsed) {          chevron.collapsed = false;          var overflowPadder = document.getElementById("overflow-padder");          overflowPadder.width = width - chevron.boxObject.width;        }      }      usedWidth += button.boxObject.width;    }    BookmarksToolbarRDFObserver._overflowTimerInEffect = false;  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/15e056867b8472d939dce23b3b0e42a88ff8ae2c/bookmarksMenu.js/buggy/browser/components/bookmarks/content/bookmarksMenu.js