Bug 621504 - Call dialog onload methods [r=mfinkle]

This commit is contained in:
Wes Johnston 2011-01-06 08:40:15 -08:00
Родитель ca85f4f5a5
Коммит f41bfa61f5
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,7 @@
window.addEventListener("resize", this, true);
scrollbox.addEventListener("overflow", this, true);
}
setTimeout(this.load.bind(this), 0);
]]></constructor>
<method name="handleEvent">
@ -54,6 +55,15 @@
]]></body>
</method>
<method name="load">
<body><![CDATA[
if (this.hasAttribute("onload")) {
let func = new Function(this.getAttribute("onload"));
func.call(this);
}
]]></body>
</method>
<method name="close">
<body><![CDATA[
if (this.hasAttribute("onclose")) {