Bug 1519502 - Convert menu bindings to a Custom Element r=surkov

Differential Revision: https://phabricator.services.mozilla.com/D19593
This commit is contained in:
Brian Grinstead
2019-04-18 16:41:46 +00:00
parent fac4c41f94
commit ba6c105dbc
15 changed files with 279 additions and 268 deletions

View File

@@ -564,8 +564,8 @@ MozElements.BaseControlMixin = Base => {
}
}
Base.implementCustomInterface(BaseControl,
[Ci.nsIDOMXULControlElement]);
MozXULElement.implementCustomInterface(BaseControl,
[Ci.nsIDOMXULControlElement]);
return BaseControl;
};
MozElements.BaseControl = MozElements.BaseControlMixin(MozXULElement);
@@ -622,6 +622,7 @@ const BaseTextMixin = Base => class BaseText extends MozElements.BaseControlMixi
return this.labelElement ? this.labelElement.accessKey : this.getAttribute("accesskey");
}
};
MozElements.BaseTextMixin = BaseTextMixin;
MozElements.BaseText = BaseTextMixin(MozXULElement);
// Attach the base class to the window so other scripts can use it: