Bug 1343707 - Make datetimepopup.xml binding attach lazily. r=mconley

MozReview-Commit-ID: C7LnrxIbU3K
This commit is contained in:
Scott Wu
2017-03-03 13:58:53 +08:00
parent 5464650ebb
commit 1d30884c66
3 changed files with 17 additions and 3 deletions

View File

@@ -25,6 +25,8 @@
<constructor><![CDATA[
this.mozIntl = Components.classes["@mozilla.org/mozintl;1"]
.getService(Components.interfaces.mozIMozIntl);
// Notify DateTimePickerHelper.jsm that binding is ready.
this.dispatchEvent(new CustomEvent("DateTimePickerBindingReady"));
]]></constructor>
<method name="loadPicker">
<parameter name="type"/>