From 9f555c4ae6a9b035165fc62cdee00a7bf4878ca0 Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Thu, 20 Mar 2003 15:37:42 +0000 Subject: [PATCH] cleanup various items like omitting needless QI, fixing case to match idl file, adding parens to JS function, fix case of doctype string; r=timeless,Neil, sr=jag; bug 198402 git-svn-id: svn://10.0.0.236/trunk@139850 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/composer/content/editor.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/editor/ui/composer/content/editor.js b/mozilla/editor/ui/composer/content/editor.js index e753691f282..5f7fc7a783d 100644 --- a/mozilla/editor/ui/composer/content/editor.js +++ b/mozilla/editor/ui/composer/content/editor.js @@ -382,7 +382,7 @@ var gEditorDocumentObserver = { try { var controller = window.controllers.getControllerById(gComposerWindowControllerID); - controller.SetCommandRefCon(editor.QueryInterface(Components.interfaces.nsISupports)); + controller.setCommandRefCon(editor); } catch (e) {} } // Call EditorSetDefaultPrefsAndDoctype first so it gets the default author before initing toolbars @@ -448,7 +448,6 @@ var gEditorDocumentObserver = onFontColorChange(); onBackgroundColorChange(); } - break; case "cmd_setDocumentModified": @@ -554,7 +553,7 @@ function EditorSharedStartup() gContentWindow = window.content; // Set up the mime type and register the commands. - if (IsHTMLEditor) + if (IsHTMLEditor()) SetupHTMLEditorCommands(); else SetupTextEditorCommands(); @@ -2337,7 +2336,7 @@ function EditorSetDefaultPrefsAndDoctype() // if it is missing from existing doc if (!domdoc.doctype) { - var newdoctype = domdoc.implementation.createDocumentType("html", "-//W3C//DTD HTML 4.01 Transitional//EN",""); + var newdoctype = domdoc.implementation.createDocumentType("HTML", "-//W3C//DTD HTML 4.01 Transitional//EN",""); if (newdoctype) domdoc.insertBefore(newdoctype, domdoc.firstChild); }