rem: } else { createMenuItem(aDataObject, printerNameStr, popupNode, isExtended); 
context:     appendPrinterNames:       function (aDataObject, strDefaultPrinterName, isExtended)         {           var popupNode = document.createElement("menupopup");           if (strDefaultPrinterName != "") {            createMenuItem(null, strDefaultPrinterName, popupNode, false);          }          // build popup menu from printer names          while (aDataObject.hasMoreElements()) {            var printerName = aDataObject.getNext();            printerName = printerName.QueryInterface(Components.interfaces.nsISupportsWString);            var printerNameStr = printerName.toString();            if (printerNameStr == strDefaultPrinterName) {              var infoObj = aDataObject.getNext();              infoObj = infoObj.QueryInterface(Components.interfaces.nsISupportsWString);              var infoStr = infoObj.toString();              gExtendedArray[printerNameStr] = infoStr;            } else {              createMenuItem(aDataObject, printerNameStr, popupNode, isExtended);            }          }          if (strDefaultPrinterName != "") {            this.listElement.removeAttribute("disabled");          } else {            var stringBundle = srGetStrBundle("chrome://communicator/locale/printing.properties");            this.listElement.setAttribute("value", strDefaultPrinterName);            this.listElement.setAttribute("label", stringBundle.GetStringFromName("noprinter"));            // disable dialog            this.listElement.setAttribute("disabled", "true");            dialog.destGroup.setAttribute("disabled","true");            dialog.printerRadio.setAttribute("disabled","true");            dialog.printerLabel.setAttribute("disabled","true");            dialog.propertiesButton.setAttribute("disabled","true");            dialog.fileRadio.setAttribute("disabled","true");            doEnablePrintToFile(false);            dialog.printButton.setAttribute("disabled","true");          }          this.listElement.appendChild(popupNode);           return strDefaultPrinterName;        } 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/23684e5b389da67306497bc74e69ad2bc28b07ae/printdialog.js/clean/xpfe/global/resources/content/printdialog.js