From 31f6fe5b14ebd28d9dd1f9726c456b6fd0ee2c13 Mon Sep 17 00:00:00 2001 From: "glazman%netscape.com" Date: Fri, 22 Nov 2002 12:40:12 +0000 Subject: [PATCH] -- not part of the build -- CaScadeS only Editorshell removal --- extensions/editor/cascades/resources/content/EdCssProps.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/editor/cascades/resources/content/EdCssProps.js b/extensions/editor/cascades/resources/content/EdCssProps.js index 86bf02a90c9..b78af5db51d 100644 --- a/extensions/editor/cascades/resources/content/EdCssProps.js +++ b/extensions/editor/cascades/resources/content/EdCssProps.js @@ -71,11 +71,11 @@ var gInsertIndex = -1; // * dialog initialization code function Startup() { - if (InitEditorShell) { + if (typeof window.InitEditorShell == "function") { if (!InitEditorShell()) return; } - else if (GetCurrentEditor && !GetCurrentEditor()) { + else if (typeof window.GetCurrentEditor != "function" || !GetCurrentEditor()) { window.close(); return; } @@ -1687,7 +1687,7 @@ function onExportStylesheet() { } function getCurrentEditor() { - if (InitEditorShell) + if (typeof window.InitEditorShell == "function") return editorShell.editor; else return GetCurrentEditor();