rem: if(!appCore || !toolkitCore) { 
add: if(!appCore) { 
context: function Startup() {  dump("Doing Startup...\n");  toolkitCore = XPAppCoresManager.Find("ToolkitCore");  if (!toolkitCore) {    toolkitCore = new ToolkitCore();    if (toolkitCore)      toolkitCore.Init("ToolkitCore");  }  if(!toolkitCore) {    dump("toolkitCore not found!!! And we can't close the dialog!\n");  }  // NEVER create an appcore here - we must find parent editor's  // temporary while this window is opend with ShowWindowWithArgs  dump("Getting parent appcore\n");  var editorName = document.getElementById("args").getAttribute("value");  dump("Got editorAppCore called " + editorName + "\n");  appCore = XPAppCoresManager.Find(editorName);    if(!appCore || !toolkitCore) {    dump("EditorAppCore not found!!!\n");    toolkitCore.CloseWindow(window);    return;    }  dump("EditorAppCore found for Link Properties dialog\n");    // 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) {    dialog.linkTextInput.focus();  } else {    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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a152976669b5eefdf918a3c66ac8ee8458d41637/EdLinkProps.js/clean/editor/ui/dialogs/content/EdLinkProps.js