Changed all occurrences of window.content.addEventListener()

to window.addEventListener() to fix editor default page not loading.
This commit is contained in:
kin%netscape.com 1999-09-16 18:40:17 +00:00
Родитель bc09e532dd
Коммит 74bfb4b6b1
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -70,7 +70,7 @@ function EditorStartup(editorType)
contentWindow = window.content;
// set up event listeners
window.content.addEventListener("load", EditorDocumentLoaded, true, false);
window.addEventListener("load", EditorDocumentLoaded, true, false);
dump("Trying to make an Editor Shell through the component manager...\n");
var editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance();
@ -912,8 +912,8 @@ function EditorDocumentLoaded()
{
dump("The document was loaded in the content area\n");
//window.content.addEventListener("keyup", EditorReflectDocState, true, false); // post process, no capture
//window.content.addEventListener("dblclick", EditorDoDoubleClick, true, false);
//window.addEventListener("keyup", EditorReflectDocState, true, false); // post process, no capture
//window.addEventListener("dblclick", EditorDoDoubleClick, true, false);
documentModified = (window.editorShell.documentStatus != 0);
return true;