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
This commit is contained in:
waterson%netscape.com
1999-07-19 20:15:39 +00:00
parent 8f454c91df
commit a3d800102a
4 changed files with 4 additions and 24 deletions

View File

@@ -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();

View File

@@ -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();">
<html:script src="related-panel.js" />

View File

@@ -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();

View File

@@ -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();">
<html:script src="related-panel.js" />