From a3d800102a808443d8c143405bd7b9b7f1d08507 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Mon, 19 Jul 1999 20:15:39 +0000 Subject: [PATCH] Use onload handler; fix assertion when related panel first displays. git-svn-id: svn://10.0.0.236/trunk@40139 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/related/related-panel.js | 11 ----------- mozilla/suite/common/related/related-panel.xul | 3 ++- .../components/related/resources/related-panel.js | 11 ----------- .../components/related/resources/related-panel.xul | 3 ++- 4 files changed, 4 insertions(+), 24 deletions(-) diff --git a/mozilla/suite/common/related/related-panel.js b/mozilla/suite/common/related/related-panel.js index 3f755bc9628..2f28262fbc5 100644 --- a/mozilla/suite/common/related/related-panel.js +++ b/mozilla/suite/common/related/related-panel.js @@ -96,14 +96,3 @@ function OnDblClick(treeitem) } -function Boot() { - // Kludge to deal with no onload in XUL. - if (document.getElementById("Tree")) { - Init(); - } - else { - setTimeout("Boot();", 0); - } -} - -Boot(); diff --git a/mozilla/suite/common/related/related-panel.xul b/mozilla/suite/common/related/related-panel.xul index 229e875c23d..4f1703490df 100644 --- a/mozilla/suite/common/related/related-panel.xul +++ b/mozilla/suite/common/related/related-panel.xul @@ -26,7 +26,8 @@ xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" - align="vertical"> + align="vertical" + onload="Init();"> diff --git a/mozilla/xpfe/components/related/resources/related-panel.js b/mozilla/xpfe/components/related/resources/related-panel.js index 3f755bc9628..2f28262fbc5 100644 --- a/mozilla/xpfe/components/related/resources/related-panel.js +++ b/mozilla/xpfe/components/related/resources/related-panel.js @@ -96,14 +96,3 @@ function OnDblClick(treeitem) } -function Boot() { - // Kludge to deal with no onload in XUL. - if (document.getElementById("Tree")) { - Init(); - } - else { - setTimeout("Boot();", 0); - } -} - -Boot(); diff --git a/mozilla/xpfe/components/related/resources/related-panel.xul b/mozilla/xpfe/components/related/resources/related-panel.xul index 229e875c23d..4f1703490df 100644 --- a/mozilla/xpfe/components/related/resources/related-panel.xul +++ b/mozilla/xpfe/components/related/resources/related-panel.xul @@ -26,7 +26,8 @@ xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" - align="vertical"> + align="vertical" + onload="Init();">