rem: dirHistory.splice(0, 0, directoryName); }  var menu = document.getElementById("lookInMenu");  var children = menu.childNodes; for (i=0; i < children.length; i++) menu.removeChild(children[i]);  for (i=0; i < dirHistory.length; i++) { 
context: function addToHistory(directoryName) {  var found = false;  var i = 0;  while (!found && i<dirHistory.length) {    if (dirHistory[i] == directoryName)      found = true;    else      i++;  }  if (found) {    if (i!=0) {      dirHistory.splice(i, 1);      dirHistory.splice(0, 0, directoryName);    }  } else {    dirHistory.splice(0, 0, directoryName);  }  var menu = document.getElementById("lookInMenu");  var children = menu.childNodes;  for (i=0; i < children.length; i++)    menu.removeChild(children[i]);  for (i=0; i < dirHistory.length; i++) {    var menuItem = document.createElement("menuitem");    menuItem.setAttribute("label", dirHistory[i]);    menu.appendChild(menuItem);  }  var menuList = document.getElementById("lookInMenuList");  menuList.selectedIndex = 0;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/bb04d495a12303f50a84505265b715d90f452c7b/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js