/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* globals MozXULElement, MozElements */ // From calendar-invitations-dialog.xhtml. var { cal } = ChromeUtils.import("resource:///modules/calendar/calUtils.jsm"); // Wrap in a block to prevent leaking to window scope. { class MozCalendarInvitationsRichlistitem extends MozElements.MozRichlistitem { constructor() { super(); this.mCalendarItem = null; this.mInitialParticipationStatus = null; this.mParticipationStatus = null; this.calInvitationsProps = Services.strings.createBundle( "chrome://calendar/locale/calendar-invitations-dialog.properties" ); } getString(propName) { return this.calInvitationsProps.GetStringFromName(propName); } connectedCallback() { if (this.delayConnectedCallback() || this.hasChildNodes()) { return; } this.setAttribute("is", "calendar-invitations-richlistitem"); this.classList.add("calendar-invitations-richlistitem"); this.appendChild( MozXULElement.parseXULToFragment( `