зеркало из https://github.com/mozilla/gecko-dev.git
Use onload handler; fix assertion when related panel first displays.
This commit is contained in:
Родитель
70171e155d
Коммит
e5c743b9f7
|
@ -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();
|
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
align="vertical">
|
align="vertical"
|
||||||
|
onload="Init();">
|
||||||
|
|
||||||
<html:script src="related-panel.js" />
|
<html:script src="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();
|
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
align="vertical">
|
align="vertical"
|
||||||
|
onload="Init();">
|
||||||
|
|
||||||
<html:script src="related-panel.js" />
|
<html:script src="related-panel.js" />
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче