rem: gBookmarkTree = document.getElementById("folder-tree"); 
add: gBookmarksTree = document.getElementById("folder-tree"); 
context: function Startup(){  sizeToContent(); //XXXpch buggy imo, we shouldn't need it  initServices();  initBMService();  gName  = document.getElementById("name");  gGroup = document.getElementById("addgroup");  gMenulist = document.getElementById("select-menu");  gBookmarkTree = document.getElementById("folder-tree");  gName.value = window.arguments[0];  gName.select();  gName.focus();  onFieldInput();  gSelectedFolder = RDF.GetResource(gMenulist.selectedItem.id);  // fix no more persisted class attribute in old profiles  var localStore = RDF.GetDataSource("rdf:local-store");  var rAttribute = RDF.GetResource("class");  var rElement   = RDF.GetResource("chrome://browser/content/bookmarks/addBookmark2.xul#expander");  var rDialog    = RDF.GetResource("chrome://browser/content/bookmarks/addBookmark2.xul");  var rPersist   = RDF.GetResource(NC_NS+"persist");    var rOldValue = localStore.GetTarget(rElement, rAttribute, true);  if (rOldValue) {    localStore.Unassert(rElement, rAttribute, rOldValue, true);    localStore.Unassert(rDialog, rPersist, rElement, true);    document.getElementById("expander").setAttribute("class", "down");  }} 
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1f1a132025729bc14e3a192a76b08efde3bff8b8/addBookmark2.js/clean/browser/components/bookmarks/content/addBookmark2.js