rem:  dialog = new Object; dialog.linkTextInput    = document.getElementById("linkTextInput"); dialog.hrefInput        = document.getElementById("hrefInput"); 
add: linkTextInput    = document.getElementById("linkTextInput"); hrefInput        = document.getElementById("hrefInput"); 
context: function Startup(){  if (!InitEditorShell())    return;    // Create dialog object to store controls for easy access  dialog = new Object;  dialog.linkTextInput    = document.getElementById("linkTextInput");  dialog.hrefInput        = document.getElementById("hrefInput");  // Kinda clunky: Message was wrapped in a <p>, so actual message is a child text node  dialog.linkMessage      = (document.getElementById("linkMessage")).firstChild;  if (null == dialog.linkTextInput ||       null == dialog.hrefInput ||      null == dialog.linkMessage )  {    dump("Not all dialog controls were found!!!\n");  }    // Set data for the dialog controls  initDialog();  // Set initial focus  if (insertNew) {    dump("Setting focus to linkTextInput\n");    dialog.linkTextInput.focus();  } else {    dump("Setting focus to linkTextInput\n");    dialog.hrefInput.focus();    // We will not insert a new link at caret, so remove link text input field    parentNode = dialog.linkTextInput.parentNode;    if (parentNode) {      dump("Removing link text input field.\n");      parentNode.removeChild(dialog.linkTextInput);      dialog.linkTextInput = null;    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5a825a37267b8407d62d47f7bb1a309af5a3f2d8/EdLinkProps.js/buggy/editor/ui/dialogs/content/EdLinkProps.js