From b9618acabd2166eab9810dcb4c4a5ff5729beb62 Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Mon, 3 Jun 2002 18:04:33 +0000 Subject: [PATCH] bug 134503; add comments that were added to branch (r=akkana, sr=kin) --- editor/ui/composer/content/editor.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index 95530f46d00..7c15039fea2 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -228,15 +228,6 @@ function addEditorClickEventListener() } catch (e) {} } -function removeEditorClickEventListener() -{ - try { - var bodyelement = GetBodyElement(); - if (bodyelement) - bodyelement.removeEventListener("click", EditorClick, false); - } catch (e) {} -} - var MessageComposeDocumentStateListener = { NotifyDocumentCreated: function() @@ -246,6 +237,9 @@ var MessageComposeDocumentStateListener = NotifyDocumentWillBeDestroyed: function() { + // note that the editorshell seems to be gone at this point + // so we don't have a way to remove the click listener. + // hopefully it is being cleaned up with all listeners }, NotifyDocumentStateChanged:function() @@ -294,6 +288,9 @@ var DocumentStateListener = addEditorClickEventListener(); }, + // note that the editorshell seems to be gone at this point + // so we don't have a way to remove the click listener. + // hopefully it is being cleaned up with all listeners NotifyDocumentWillBeDestroyed: function() {}, NotifyDocumentStateChanged:function( isNowDirty )