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");  }  // 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");    // NEVER create an appcore here - we must find parent editor's  appCore = XPAppCoresManager.Find(editorName);    if(!appCore || !toolkitCore) {    dump("EditorAppCore not found!!!\n");    toolkitCore.CloseWindow(window);    return;  }  dump("EditorAppCore found for Image Properties dialog\n");  // Create dialog object to store controls for easy access  dialog = new Object;  // This is the "combined" widget:  dialog.Src = document.getElementById("image.Src");  dialog.AltText = document.getElementById("image.AltText");  if (null == dialog.Src ||       null == dialog.AltText )  {    dump("Not all dialog controls were found!!!\n");  }        initDialog();    dialog.Src.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/68f95d7549796947794df9ce213b9f0994a7b8a7/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js