зеркало из https://github.com/mozilla/gecko-dev.git
Bug 621504 - Call dialog onload methods [r=mfinkle]
This commit is contained in:
Родитель
ca85f4f5a5
Коммит
f41bfa61f5
|
@ -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")) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче